Monday, January 06, 2025

Civet language: compact, TypeScript superset

resembling Python and F# (terse, powerful, functional language),
compiles to JavaScript

A Programming Language for the New Millennium
Code More with Less in a TypeScript Superset

Civet is a programming language that compiles to TypeScript or JavaScript, so you can use existing tooling (including VSCode type checking, hints, completion, etc.) while enabling concise and powerful syntax. 

It starts with 99% JS/TS compatibility, making it easy to transition existing code bases. Then it adds many features and syntactic sugar, with some highlights below and more comprehensive examples in the reference



Two years old and well maintained, Civet offers an interesting approach. Think JavaScript but with Python style indentation, chained comparisons, built-in JSX, & more. 
This example alone shows off the potential for tighter, easier-to-write code.


No comments: