Parse, Don't Validate — In a Language That Doesn't Want You To

21 points by FedericoSchonborn


toastal

If JavaScript/TypeScript are fighting the style of code you want to do (either technically or ergonomically), why not choose one of gajillion compile-to-JS languages out there instead? We see Haskell, Elm, F# mentioned… PureScript, js_of_ocaml, Reason, LunarML, (& bound to be many more that I’m forgetting) in the same family the writer seems like they would rather be using, so why not just use them? They even mention the wrote a whole nother post called Why TypeScript Won’t Save You doing even more comparisons to the languages they would rather be using as well as hosting https://learnelm.dev. …Or is the comparison the whole point: to show users that TypeScript doesn’t get the job done for many to encourage adoption of other toolchains/ideas?