Skip to main content

Questions tagged [optionals]

For questions about option types, where a value explicitly may be present or not; these are also known as Maybe types. Do not use for questions about allowing static types to be optionally given or not., or choosing between alternatives

Filter by
Sorted by
Tagged with
6 votes
2 answers
174 views

Are there any benefits to an Option type in a dynamically-typed language?

Going off of this question about the difference between nullable types and optional types, I notice that no mainstream dynamically typed language has ever gone for an explicitly-boxed ...
Silvio Mayolo's user avatar
15 votes
7 answers
657 views

What are the pros and cons of an Option type in comparison to nullable types?

There seem to be two main ways that languages handle the same concept: Nullable types, like Kotlin, C#, and many other OOP languages Options, like Rust and Haskell,...
Rydwolf Programs's user avatar