Skip to content

Object.seal/isSealed documentation - #104

Closed
jmagaram wants to merge 3 commits into
rescript-lang:mainfrom
jmagaram:Object.seal-and-Object.isSealed
Closed

jmagaram wants to merge 3 commits into
rescript-lang:mainfrom
jmagaram:Object.seal-and-Object.isSealed

Conversation

@jmagaram

Copy link
Copy Markdown
Contributor

Stole liberally from MDN

@jmagaram

Copy link
Copy Markdown
Contributor Author

Modifies the object but does not return unit. The code examples are very weird. With typical Rescript Object syntax everything is immutable. But if you use Object.set all bets are off, the compiler doesn't know the shape of your objects, etc. Hard to teach this in a tiny doc string.

@jmagaram

Copy link
Copy Markdown
Contributor Author

Consolidated into #117

@jmagaram jmagaram closed this Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant