You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually intended. Maybe it's the naming that's a bit confusing, but Null.t and Null.fromOption would return null for None. Nullable has both undefined and null.
Closing since it's working as intended, but please feel free to continue the discussion.
Yes, this was exactly what got me. The nullable name made me assume it returned null, rather than it being a nomenclature fore both null and undefined coercing to undefined. I also thought null only defined the null constant value. I hadn't noticed Null.t<'a>.
should return
null
, but instead returnsundefined
, which is not the same. :(The text was updated successfully, but these errors were encountered: