tc39 / proposal-record-tuple

ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!
https://tc39.es/proposal-record-tuple/
2.5k stars 62 forks source link

Naming JSON.parsePrimitive instead of parseImmutable #327

Closed hax closed 2 years ago

hax commented 2 years ago

I think "immutable" is more broad, it could also mean immutable objects, people may think JSON.parseImmutable returns deep frozen immutable array/objects. So parsePrimitive may be the more accurate name.

Another reason that I don't like "immutable" in the API name, is it make us impossible to explore the possibility of "mutable" value type (like Swift, Kotlin) in the future.

rricard commented 2 years ago

That sounds like we'll be able to discuss this in the detached proposal for parseImmutable that we intend to detach in #330.