The option Type
Explore the option type in ReasonML, which handles nullable values without using null. Learn about the Some and None constructors and how to use switch expressions to manage optional data safely.
We'll cover the following...
We'll cover the following...
What is the option Type?
In theory, Reason does not have nullable types. Such types can have a value of null or in other words, nothing.
We’ll never see a null int or string object. They must always contain some value. ...