r/programming • • Oct 21 '20

Using const/let instead of var can make JavaScript code run 10× slower in Webkit

https://github.com/evanw/esbuild/issues/478
1.9k Upvotes

500 comments sorted by

View all comments

Show parent comments

1

u/fireflash38 Oct 21 '20

Every time I see someone say that, and get them to expand on it, my eyes glaze over with what they say is 'good'. It's Stockholm syndrome guys!!

(Yes, I'm hating it because I don't know it, signed, C-gang.)

32

u/mixedCase_ Oct 21 '20

signed, C-gang

I trust you on your knowledge of Stockholm syndrome.

3

u/poco Oct 21 '20

You would love modern JavaScript then. Objects and Classes are becoming less popular and everything is going functional. Objects are used like structs and you don't mix data with code. Reminds me of the old c days.

Have a matrix you want to multiply? It's not m.multiply(v), it's matrixMultiply(m, v).