logoalt Hacker News

edstarch • today at 11:25 AM • 0 replies • view on HN

But you gotta admit that nobody sane would design the current state of writing and compiling TS being required as an intermediate step to producing reasonably correct JS? The sole reason TS exists is because of the flaws inherent in JS’ original purpose and design. Not to mention all the random completely insane footguns (eqeqeq etc.) and the whole community issue (npm everything).

Actually Python has a similar problem in that there’s a cottage industry of solutions to make it behave more like a fundamentally different language (dataclasses, attrs, mypy, pydantic, fastapi, etc.) because it turns out what people like about python was its simple and expressive syntax rather than its fundamental design.