-
Notifications
You must be signed in to change notification settings - Fork 59
Naming #82
Description
Hi guys,
Nice feature, I can't wait to be able to work with native immutable data structures in the future. I'm just not sure about the terminology:
I was mostly unfamiliar with the proper meaning of records and tuples before now, so I did a little research. What I found is that they represent simpler and more generic ideas than what this proposal introduced. Also, some programming languages use these terminologies but differently than how this proposal intends to implement them.
I'd propose just to stick with "immutable objects" and "immutable arrays".
Imagine your average JS dev. Already familiar with objects and arrays, probably already familiar with immutability thanks to React. It is easier for them to grasp the meaning of an "immutable array" than a "touple", even if they are the same thing.
I don't really see a drawback of simply prefixing already known features with "immutable" to name these features. It's boring. It's a bit longer. On the other hand, we get a simple, easy-to-understand naming which then can be applied to other data structures in the future (for example immutable maps or immutable dates)