3 ms·
You can't opt out of implicit type conversion. I think this is one of the biggest issue Javascript have. I think the Wat lighting talk really hone this fact i
by digitalzombie 10y ago
You can't opt out of implicit type conversion.
I think this is one of the biggest issue Javascript have.
I think the Wat lighting talk really hone this fact in far more than I can.
https://www.destroyallsoftware.com/talks/wat https://www.destroyallsoftware.com/talks/wat
ES6 did some nice things but at the core the language was never meant to be code more than 100 lines or so of code.
You can tell when it didn't have module or package system in place from the get go. Also strict typing whether dynamic or static really goes along way in term of code maintainability especially more so when you're doing tons of lines of code.
So I guess this reply is to say you can't really opt out of Javascript's hideous wart of all imo.
- mschuetz 10y ago> implicit type conversion Yes, defenitely one of the biggest problems. However, after switching to === and never using == again, I've found that it's easy to avoid implicit conversions and I haven't had a problem with it in years. I totaly agree they should remove implicit conversions from javascript by yesterday, though. > but at the core the language was never meant to be code more than 100 lines or so of code. Lot's of things aren't meant to be used the way they are but things evolve.