4 ms·
The language really should have a true immutable type (without freezing, etc.) and deep copy method built in, with as many caveats and parameters as needed. Cor
by russellbeattie 8y ago
The language really should have a true immutable type (without freezing, etc.) and deep copy method built in, with as many caveats and parameters as needed. Coroutines would be awesome as well. (Yes, I'm thinking, "How could JavaScript be more like Go or Erlang?")
And then it needs to stop adding new features for at least a couple years so the world can catch up.
- SonicSoul 8y agoi guess most languages do not add this because of circular reference problem?
- yuchi 8y agoI infer you don't mean to have both immutable data structures and deep copy as features to use together, since immutables don't need to be cloned.
- TheAceOfHearts 8y agoYou can implement coroutines using generators. Is there any feature you'd miss from other implementations if you used generators in that way?