What’s New in ES2019
blog.tildeloop.com
What’s New in ES2019
1–10 of 411 posts
Re: What’s New in ES2019
#2Re: What’s New in ES2019
#3But I'm still very nervous about some of the stuff mentioned here with regard to mutation. Taking Rust and Clojure as references, you always know for sure whether or not a call to e.g. `flat` will result in a mutation.
In JS, because of past experience, I'd never be completely confident that I wasn't mutating something by mistake. I don't know if you could retrofit features like const or mut. But, speaking personally, it might create enough safety-net to consider JS again.
(Maybe I'm missing an obvious feature?)
Re: What’s New in ES2019
#4.
Re: What’s New in ES2019
#5.
Doesn't the fact that flatten by default only flattens one level mean you can still create nested output by emitted nested outputs?
> The flatMap() method first maps each element using a mapping function, then flattens the result into a new array. It is identical to a map() followed by a flat() of depth 1, but flatMap() is often quite useful, as merging both into one method is slightly more efficient.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re: What’s New in ES2019
#6I really love languages that force you to handle errors up to the top level.
Re: What’s New in ES2019
#7It's great to see JS getting some of the features of better planned languages. But I'm still very nervous about some of the stuff mentioned here with regard to mutation. Taking Rust and Clojure as references, you always know for sure whether or not a call to e.g. `flat` will result in a mutation. In JS, because of past experience, I'd never be completely confident that I wasn't mutating something by mistake. I don't…
Re: What’s New in ES2019
#8Re: What’s New in ES2019
#9It's great to see JS getting some of the features of better planned languages. But I'm still very nervous about some of the stuff mentioned here with regard to mutation. Taking Rust and Clojure as references, you always know for sure whether or not a call to e.g. `flat` will result in a mutation. In JS, because of past experience, I'd never be completely confident that I wasn't mutating something by mistake. I don't…
If so then yeah, that can be annoying and/or confusing.
Re: What’s New in ES2019
#10That’s a surprisingly small amount of change. I’ll leave it to others to determine if that’s a good or bad thing.