DEV Community

Discussion on: I miss you, var.

Collapse
 
adam_cyclones profile image
Adam Crockett ๐ŸŒ€ • Edited

They should have made var behave like let and just add const. Or make everything immutable by default. I dislike the whole 3 variable assignment keywords, I'd welcome the trillions of breaking changes.

Collapse
 
fernandosavio profile image
Fernando Sรกvio • Edited

I understand the feeling, but they probably didn't do it this way to avoid breaking backwards compatibility.
They should do it right from the beginning.

Collapse
 
deciduously profile image
Ben Lovy

They should do it right from the beginning

Hindsight is 20/20

Thread Thread
 
fernandosavio profile image
Fernando Sรกvio

Far enough.
That was an unhappy statement, at least I learned a new word. thanks ๐Ÿ˜ฌ

Thread Thread
 
deciduously profile image
Ben Lovy

Not saying you're wrong, just that it's not trivial :)

Thread Thread
 
adam_cyclones profile image
Adam Crockett ๐ŸŒ€

Ahh 2020 the only year I can make jokes about my vision.

Collapse
 
adam_cyclones profile image
Adam Crockett ๐ŸŒ€

Sadly a time machine written in early JavaScript probably wouldn't work very well ๐Ÿฅณ Merry Christmas

Collapse
 
karataev profile image
Eugene Karataev

Nowdays even const is considered as a mistake ๐Ÿ˜…

Thread Thread
 
adam_cyclones profile image
Adam Crockett ๐ŸŒ€

Constant complaining from the js community. ๐Ÿ˜†