-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naming bikeshed: "immutable" #2
Comments
I raised the similar issue in original proposal: tc39/proposal-record-tuple#327 Here are the names I suggested: |
“Primitive” includes things that JSON doesn’t - symbols and undefined, in particular. |
@ljharb Yeah, and JSON also don't include bigints and special float values (NaN, ±Infinity). But I think it's still correct to say it only generate primitives? |
Well, there is another option, |
|
What about something like |
what's dynamic or non-final about the existing parsing? |
I think the word "immutable" is sufficiently overloaded that it'd cause confusion to use it.
All primitives are immutable, but so are frozen objects without internal slots that have no "non-immutable object" properties.
I'd love to gather suggestions of alternate names that can convey "produces Records and Tuples instead of Objects and Arrays" in a way that doesn't have nuances and edge cases. (I'll make my own suggestions in independent comments, as I come up with them, so they can be emoji-reacted to individually)
The text was updated successfully, but these errors were encountered: