News for hackers. Stuff that matters.
Re:Civet: A Superset of TypeScript by epolanski on Monday October 21, 2024 @07:40PM (#41909706)
Interesting but not sure how much do I buy it.

I would rather do with a stricter super set of TypeScript with some sugar/conveniences around its many verbose but useful features like branded types.

Re:Civet: A Superset of TypeScript by edemaine on Monday October 21, 2024 @10:54PM (#41910764)
We're definitely looking for ways to improve ways to specify types! I think destructured typing [https://civet.dev/reference#destructured-typing] is already quite useful, especially for React. On the readability side, if/then/else [https://civet.dev/reference#conditional-types] seems easier to read than ?: ternaries, and "Partial Record Name, Info" seems easier to read than "Partial<Record<Name, Info>>" (implicit type arguments — https://civet.dev/reference#implicit-type-arguments). But we'd love to hear more ideas for features like branded types. Join us in Discord if you're interested!