by pcthrowaway · 1w ago · 0 comments
- Does it have LSP integration?
- Can a linter/formatter catch typescript/javascript which isn't valid Civet (needs minor changes to conform to the additional restrictions). Perhaps even an auto-formatter?
- I see semicolons are optional but not used in examples.. are there ASI pitfalls as with Javascript?
- Is this built from a fork of the Typescript compiler? Or is it compiling Civet -> Typescript -> Javascript (with the ts compiler involved in the second step)?
- Whitespace appears significant in Civet... are the rules of whitespace significance documented in one place anywhere?
- How does it play with existing ecosystem. I'm immediately wondering about runtime schema validation libs like Zod
And for me, the most compelling feature is the potential with switch. Any plans to support switch nesting and algebraic data types a la rust? This would be a killer feature IMO. I guess in the example, there is no type for `x` shown in the demonstration; Is `x` here presumed un-typed? If `x` was typed, would the switch present a compiler error if trying to match a subset of `x` disallowed by its typedef?
No comments yet.