Re:Why we chose Elm for Humio’s web UI
by heterodoxxed on Monday April 19, 2021 @01:18PM
(#26865347)
| There are important escape hatches that TS gives that make it unreliable
This is one way to mitigate those escape hatches:
https://github.com/cyrilletuzi/typescript-strictly-typed
But in my experience, you had better be starting a new project. They aren't joking when they say laying it on an existing codebase is a nightmare.
Do you know if that somehow fixes https://github.com/microsoft/TypeScript/issues/8677 ? That's still the most annoying thing about typescript for me.
Refactoring code or updating dependencies is and feels a lot safer in Elm than in TS, and doesn't require asking for every npm package author to add TS type definitions.
I'd also argue that TS/JS have the esoteric/cool features. Elm is a very simple language, complete enough to be able to write most programs, but small enough to give you a lot of guarantees about how the code will behave.