News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by earthboundkid on Wednesday September 25, 2019 @09:59PM (#21077459)
Time deciding if you can/should rebind a variable or not is a waste of developer time.
Re:V8 adds support for top-level await by jhomedall on Thursday September 26, 2019 @12:17PM (#21082467)
You will know ahead of time whether you're going to be rebinding a variable. The use of const is a hint to the next person reading your code, since they won't be privy to your thought process.

In an ideal world, const would be the default, and you would have to opt into non-const.

Re:V8 adds support for top-level await by aledalgrande on Wednesday September 25, 2019 @10:56PM (#21077727)
Then when you will have to change or debug the same code instead of writing new, you will have to spend more time understanding what variable is the source of a state change, for example inside a loop. That is more of a waste of time to me.
Re:V8 adds support for top-level await by elyobo on Wednesday September 25, 2019 @10:25PM (#21077592)
I sort of agree; I solve this by never using let and never rebinding :) No need to think about it at all.
Re:V8 adds support for top-level await by earthboundkid on Thursday September 26, 2019 @09:19AM (#21080631)
Then you end up playing this game of jumping through hoops to omit variables. It's a tempting waste of time because it feels productive.
Re:V8 adds support for top-level await by elyobo on Saturday October 05, 2019 @02:29AM (#21164131)
Strangely it turns out that rebinding variables is a really uncommon need, so there's pretty much zero game playing.