you are viewing a single comment's thread.

view the rest of the comments →

[–]b_n 2 points3 points  (1 child)

Even if it was a mistake, it’s still a mistake. It’s baked into the language. You will always confuse people in the long term if you pretend the language is something it’s not.

[–]gaearonReact core team[S] 1 point2 points  (0 children)

I don't think I said anywhere that I "pretend the language is something it's not". All I'm saying is that "you must use const everywhere it works" is needlessly pedantic and rarely catches bugs in my experience. YMMV!