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
Wouldn't this be more clear if we had an Undefinable module to seperate null from undefined. I've run across this issue working with JSON.stringifyAny where one of the types is Nullable.t<'a>, and it skipping the field rather than putting null when the value is supposedly null.
Wouldn't this be more clear if we had an Undefinable module to seperate null from undefined.
If you want strictly undefined or 'a you probably want an option<'a> instead as that sounds like it'd match your expectations here; and I don't think introducing a breaking change to Core when this matches the behavior of the old Js module would help with the migration path
I've run across this issue working with JSON.stringifyAny where one of the types is Nullable.t<'a>, and it skipping the field rather than putting null when the value is supposedly null.
That sounds like it matches the JavaScript implementation to me:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses #170. It simply removes
external undefinedfrom theNullablemodule.