News for hackers. Stuff that matters.
Re:Civet: A Superset of TypeScript by btown on Monday October 21, 2024 @10:01PM (#41910448)
For “everything is an expression” https://github.com/tc39/proposal-do-expressions may be of interest, though discussion seems to have paused.
Re:Civet: A Superset of TypeScript by jamincan on Wednesday October 23, 2024 @10:09AM (#41925209)
The odd thing is that Civet includes both do expressions and everything is an expression. I'd be happy with either, but both seems like a bad idea.
Re:Civet: A Superset of TypeScript by edemaine on Wednesday October 23, 2024 @04:07PM (#41928834)
Do blocks in Civet are mainly to provide shielded scopes (with local declarations). They're currently also necessary to handle declarations (const/let) in the middle of expressions, but hopefully they won't be necessary eventually - only when the user wants to shield scopes. They also have useful forms like `async do` that let you build Promises using await-style code.