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
The documentation is wrong. "Unsafe" here means that it's unsoundly typed, i.e. that it may return a value that does not belong to its return type, in this case undefined, which does not belong to most types you can put in an option.
The documentation of
Option.getUnsafe
gives the example:However, the following code does not raise. I see
undefined
printed to the console and no exception.Why is there also an
Option.getExn
function? That has the expected behavior, so I'm using that for now.The text was updated successfully, but these errors were encountered: