Show HN: Civet the CoffeeScript of TypeScript v0.4.20

5 points by Yahivin ↗ HN
I've spent the past few months building a language that is 99% compatible with CoffeeScript and 99% compatible with TypeScript. Essentially a reimagined CoffeeScript for 2022 that finished ES6s partially completed features, adds TypeScript support, and keeps the niceties of CoffeeScript.

Example features:

- Const assignment shorthand

  user := getUser()
  ---
  const user = getUser()
- Parens optional and braceless nesting

  if x > 0
    return
  ---
  if (x > 0) {
    return
  }
- &fn shorthand

  nums.map &+1
  ---
  nums.map($=>$+1)
And a heck-ton more: https://github.com/DanielXMoore/Civet

A big milestone today: v0.4.20, parser hit 5kloc, and >666 tests.

Please share your thoughts, feelings, hopes, and dreams. Thank you for coming to my Ted Talk.

3 comments

[ 2.9 ms ] story [ 14.5 ms ] thread
I'm Daniel and I created Civet, ask me anything!
Looks really good… looking forward to trying it out.
Thanks, let me know if you find any bugs or have feature suggestions!