Re:Ask HN: What would you change about JavaScript if you could?
by maxharris on Thursday September 07, 2017 @11:07PM
(#15197630)
I wish JavaScript had built-in immutable data structures. Immutable.js is interesting, but difficult to bring into a project because it's difficult to get buy-in from everyone involved.
I also wish JavaScript were generally better at functional programming - I'd love to see a keyword that ensures that no form of mutation is possible within a given scope.
I also wish JavaScript were generally better at functional programming - I'd love to see a keyword that ensures that no form of mutation is possible within a given scope.