This is a newbie question, but I couldn't find a quick answer anywhere.
Does Facebook's Reason language support nullable types? If so, in what form?
There is no null
. The closest we have is option variant. See various documentation below:
https://reasonml.github.io/docs/en/newcomer-examples.html#using-the-option-type https://reasonml.github.io/docs/en/variant.html#option
Let me know if there is a specific kind of situation that you would have a null
in JavaScript that you would like to see the Reason equivalent.