News for hackers. Stuff that matters.
Re:Hegel – An advanced static type checker for JavaScript by lucideer on Wednesday October 12, 2022 @07:07PM (#33184977)
I noticed that the syntax choices differed ever so slightly from Typescript - given the project is 4 years old & TS is 10, this seemed an odd choice for some of the more arbitrary syntax decisions.

But then I realised it seems to follow Facebook's flow syntax a little more closely. I wonder if there's any shared heritage.

Re:Hegel – An advanced static type checker for JavaScript by thayne on Wednesday October 12, 2022 @10:18PM (#33186377)
The syntax is simpler. Less operators and keywords. That has benefits for the implementation, and I think better compatibility with the type annotations proposal for ecmascript. It might also be easier to learn if you aren't already familiar with typescript.