by catlifeonmars · 1w ago · 0 comments
Just to nitpick, there is a whole list of reasons under “Changes from ES6” that invalidate the claim that this is a superset of typescript. In order to be a superset, you have to accept any valid typescript.
Its compactness and simplicity combined with its support for functions as first-class values inspired this CoffeeScript book, which was inspired by "The Little Lisper," "Little Scheme," and "Little MLer:"
https://raganwald.com/assets/books/coffeescript-ristretto.pd...
I really do like the piping though. I dearly wish that was in js/ts already.
The word "style" in "cofeescript style syntax" is doing heavy lifting there. Coffeescript's syntax is a terrifying sea of ambiguity. Perhaps one could tweak its syntax to make it less ambiguous, but I doubt that would preserve its intended lightweight charm.
To put it another way, coffeescript syntax is just ML syntax without modern tooling and without typing.