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 especially useful when working with newtypes.
The cast function should probably be just an alias to coerce.
There are libraries like Witch or Relude.Extra.Newtype that allow smart conversion between types, but ideally we should keep this as dumb as possible, and users should ideally do the wrapping/unwrapping manually, as it is more explicit.
The text was updated successfully, but these errors were encountered:
This is especially useful when working with
newtype
s.The
cast
function should probably be just an alias tocoerce
.There are libraries like Witch or Relude.Extra.Newtype that allow smart conversion between types, but ideally we should keep this as dumb as possible, and users should ideally do the wrapping/unwrapping manually, as it is more explicit.
The text was updated successfully, but these errors were encountered: