News for hackers. Stuff that matters.
Re:Interesting Bugs Caught by ESLint's no-constant-binary-ex... by robinson7d on Wednesday November 08, 2023 @10:55PM (#38201005)
There’s a short thread by WalterBright in here that explains why: https://news.ycombinator.com/item?id=38199237

The back and forth on that thread seems to result in advocating for what we’ve got: compiler (TypeScript in your example) not caring, but linter caring.

The reason not to in the transpiler is it can be very helpful during testing to block or force some paths.

There are no comments on this comment yet.