Really redminds me of coffeescript, lots of special syntax that doesn't really help readability? I have a hard time understanding the motivation of this project other than syntactic sugar-maxxing JS/TS.
Languages like this don't make sense anymore. You can just pick a mature, feature-rich language you like (Rust, Kotlin, Python, probably many more) and transpile to JS.
Civet: A Superset of TypeScript
81–90 of 237 posts
Re: Civet: A Superset of TypeScript
#82The pattern matching (TC39 stage 1) and pipeline operators (TC39 stage 2) look great, and I'd love to have those in TypeScript. It will probably take a loooong while for those features to be available in JavaScript, but I feel like I can live without those for now :-). Fwiw it seems a lot of people really like the concept of "significant indentation". I'm thinking Python, YAML, Godot's GDScript. Not a lof of language…
Re: Civet: A Superset of TypeScript
#83Things I like: - Everything is an expression - Async imports just work without thought - Yaml-like object structuring - JSX improvements - Multi-line string literals without leading whitespace Things I’m on the fence about: - Pipe operators (better than .pipe I guess?) - Pattern matching (love it in Scala and swift, but this doesn’t feel done right) Things I loathe: - Signifiant whitespace (removing brackets in gener…
Re: Civet: A Superset of TypeScript
#84Civet. Kopi luwak coffee. It's CoffeeScript. I wrote a bunch of CoffeeScript back in the day, and everyone I've spoken to about it feels the same, that it was a bad idea in hindsight, and a language dead end. The language was only syntactic sugar, and by not bringing anything else to the table, was unconvincing for ports and support in other ecosystems. It now seems that most codebases have been decaffeinated though.…
Re: Civet: A Superset of TypeScript
#85Earlier quoted context omitted.
I think everyone mostly agrees that CoffeeScript was a dead end, but I think it drove at lot of innovation at the time. Hopefully Civet can do the same, even if it ends up being another dead end.
What makes Civet more likely to drive that innovation than TC39 proposals themselves?
Re: Civet: A Superset of TypeScript
#86Re: Civet: A Superset of TypeScript
#87Earlier quoted context omitted.
The GWT approach has its own downsides as well.
A) GWT is 20 years old and not similar to how modern transpilation works B) What are the downsides?
Re: Civet: A Superset of TypeScript
#88Re: Civet: A Superset of TypeScript
#89Re: Civet: A Superset of TypeScript
#90So make sure you introduce this in your company; become the subject expert in it, invite everyone to very cool sessions demonstrating how cool it is, and secure your job until the next rewrite! Looking at the examples, 1/5th of it looked neat, which probably would be best to submit a proposal for |> to the typescript committee rather than write another alienation. This is a solution looking for a problem to solve. It…
> It introduces an alternative and does so as a superset; which is not only dangerous to existing code bases... How so?
As for the superset comment, I meant that if you introduce a completely different language, you probably have a valid reason; e.g. it does something different. Adding to an existing language with a superset without any need for it is also dangerous. It's not like it's a DSL at a higher level helping people get repetitive or scriptable things done faster. It's only an alternative, leading people down rabbit hole and second guessing with a lot more to remember.