DEV Community

Discussion on: Should You Truly Never Use var?

Collapse
 
antonfrattaroli profile image
Anton Frattaroli

I started using let, stopped due to users experiencing issues on their iPads. Still too new. Certainly not introducing babel in an application for some nearly trivial differences in how code runs.

Collapse
 
sakex profile image
sakex

That’s why you should use Babel

Collapse
 
reegodev profile image
Matteo Rigon

If you wanna use es6 in your production code the only real choice is to use a compiler.
If you don't think setting up a compiler is worth then you don't really need es6

Collapse
 
johnwolfe820 profile image
John Wolfe

that's interesting, so you still have to use var?

Collapse
 
antonfrattaroli profile image
Anton Frattaroli • Edited

Yeah, not that I consider it a hardship. Safari on iOS <= 9.3 (2015-2016) doesn't support let.