News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by megous on Wednesday September 25, 2019 @07:02AM (#21069517)
I'm with you. Though typing `if (a = 1) {}` happens to me sometimes, and const may catch this earlier. I don't use a linter anymore, but I suppose any serious linter would warn about assignement in a condition, anyway.
Re:V8 adds support for top-level await by elyobo on Wednesday September 25, 2019 @03:23PM (#21074328)
Why have you stopped using a linter?

The popular airbnb eslint rules[1] require the use of const where a variable is not reassigned, which I've occasionally found handy.

[1] https://github.com/airbnb/javascript#references--prefer-cons...