DEV Community

Cover image for I miss you, var.
Wassim Chegham
Wassim Chegham

Posted on

I miss you, var.

This is my open poem for the JavaScript var:

Latest comments (14)

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
 
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. 😆

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
 
alitaherimotlagh profile image
AliTaheriMotlagh

we should make a movie about it.

Collapse
 
zacharythomasstone profile image
Zachary Stone

So like a Marvel movie? Or should I say.. Varvel? I will see myself out.

Collapse
 
alitaherimotlagh profile image
AliTaheriMotlagh

varpider man.

Collapse
 
vintharas profile image
Jaime GonzĂĄlez GarcĂ­a

You should make it a song 😁

Collapse
 
forkbomb profile image
Joe Buckle

Nah - good riddance var. Long live let & const ;)