4 ms·
I tried to build the braceless syntax some years back (after I worked on CoffeeScript and it mostly died): https://xixixao.github.io/lenientjs/ https://xixixao
by xixixao 2y ago
I tried to build the braceless syntax some years back (after I worked on CoffeeScript and it mostly died):
https://xixixao.github.io/lenientjs/ https://xixixao.github.io/lenientjs/
But this was before Prettier.
The real challenge in languages now is flawless LSP implementation, auto-formatter and AI completion. It’s possible for CoffeeScript like syntax, but just the existence of an auto-formatter mostly removes the need for dropping all the syntax.
I’d maybe take dropping of parens from if, to align with Rust, but even some of Rust’s syntax makes the language hard to read (if let bindings for example, which switch the flow from right to left), so I don’t consider it a golden standard to strive for anymore.
The other thing I would take is custom operators, not for any production code, but for building games and simulations, to simplify vector math.
I’ll check out the Civet IDE experience, but I suspect it’ll have large cons compared with TS.
- xixixao 2y agoThe other thing that was hard to do with Lenient was to pass the thousands of tests in Babel to ensure the syntax handles every edge case.