One more thing: Is `Nothing?` a valid/proper way t...
# getting-started
j
One more thing: Is
Nothing?
a valid/proper way to indicate that something only can be
null
?
👍 1
y
It is a type inhabited only by
null
, so yes it is apt. However, I'd probably usually use
Unit
unless I need
null
-ness for a specific, identifiable reason.
👍 1