News for hackers. Stuff that matters.
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.

Re:Ask HN: What would you change about JavaScript if you could? by hoodoof on Friday September 08, 2017 @12:14AM (#15197808)
I resisted immutability until I really understood that many of my bugs were because of mutation - now I'm a big advocate.