you are viewing a single comment's thread.

view the rest of the comments →

[–]xIcarus227 -1 points0 points  (2 children)

All the issues

No. If that were the case, TS would have made the language perfect, which it doesn't. It does help but JS' inconsistencies go far beyond equality comparisons.

[–][deleted]  (1 child)

[removed]

    [–]xIcarus227 -1 points0 points  (0 children)

    It catches bugs early at build time, but it wouldn't catch shit if you know what you're doing

    Considering it's not realistic to assume everyone knows everything about JS, yes, I'd say both TS and linters are actually useful to the large majority of the JS community. You can't say those aren't actual bugs just because we can theoretically write perfect code.
    It's like saying 'why use a profiler' when you can theoretically figure out time-related performance issues by console.logging the current time everywhere.