TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Civet the CoffeeScript of TypeScript v0.4.20

5 pointsby Yahivinover 2 years ago
I&#x27;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.<p>Example features:<p>- Const assignment shorthand<p><pre><code> user := getUser() --- const user = getUser() </code></pre> - Parens optional and braceless nesting<p><pre><code> if x &gt; 0 return --- if (x &gt; 0) { return } </code></pre> - &amp;fn shorthand<p><pre><code> nums.map &amp;+1 --- nums.map($=&gt;$+1) </code></pre> And a heck-ton more: https:&#x2F;&#x2F;github.com&#x2F;DanielXMoore&#x2F;Civet<p>A big milestone today: v0.4.20, parser hit 5kloc, and &gt;666 tests.<p>Please share your thoughts, feelings, hopes, and dreams. Thank you for coming to my Ted Talk.

2 comments

alwillisover 2 years ago
Looks really good… looking forward to trying it out.
评论 #33836311 未加载
Yahivinover 2 years ago
I&#x27;m Daniel and I created Civet, ask me anything!