Re:Strong typing, a hill I'm willing to die on
by ecshafer on Wednesday October 04, 2023 @01:59PM
(#37769122)
This sounds like its just Typescript evangelizing. But while I love types, Typescript kind of sucks and sucks the fun out of writing Javascript. If I am going to add a compilation step to get types, I would rather write Scala or F# and compile to JS, then you also get rid of all of the warts of JS that Typescript doesn't get rid of.
[ Parent
| on HN ]
Re:Strong typing, a hill I'm willing to die on
by IshKebab on Wednesday October 04, 2023 @06:18PM
(#37772576)
I agree Typescript doesn't solve all the warts. But it does solve a lot.
The really issue with compile-to-Javascript languages is debugging. Have fun stepping through your incomprehensible generated code in dev tools.
(Except Dart which has really good Dev tools support; I guess they can poke the right people to make it work.)