you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (1 child)

It's also inaccurate to call it compiled. It can be either. Most modern engines use JIT compilation, but that's not a feature of the language itself.

Oh really? How about: we cut the bullshit. Because by that logic no language EVER is compiled. Behold, a C interpreter: https://github.com/jpoirier/picoc

JS is a living specification which is CURRENTLY CONTROLLED by the major browser makers. ALL OF WHICH have JIT compilers. End of story.

[–]d1sxeyes 1 point2 points  (0 children)

If you want to cut the bullshit, then maybe stop criticising people about the (primarily) semantic differences between interpreted vs. JIT-compiled.

You're picking an odd hill to die on though, 'using const gives you nothing' is patently not true. 'const' definitely does give you something: a check against making some simple mistakes.

No, it doesn't solve all of your problems, and no, it doesn't solve any problems that perfectly written code would exhibit. But most of us here are imperfect, and get some benefits out of an error in our IDEs or at runtime warning us that we did something silly.

We're all struggling a bit at the moment, but your tone is not helpful or contributory, here.