Unofficial Hacker News companion — get notified on comment replies, and more.

Civet: TypeScript superset that favors more types and less typing (opens external site)

69 points by nateb2022 3 days ago | github.com | 47 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. > I’ve always liked coffeescript style syntax.

    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.

    Replies (1)
    1. I think it would. ReasonML/ReScript is a good example of a similarly lightweight syntax with a more functional bent with static/strong typing. It works well. I’m convinced the ergonomic issues with coffeescript (which at the time was a major reason I did not use it for serious projects) are resolved with strong + static (optionally explicit) typing.

      To put it another way, coffeescript syntax is just ML syntax without modern tooling and without typing.