Re:Hegel – An advanced static type checker for JavaScript
by cercatrova on Wednesday October 12, 2022 @09:01PM
(#33185894)
The benefit is right there in the line you quoted. TypeScript doesn't offer type safety at runtime, Hegel apparently does.
[ Parent
| on HN ]
Re:Hegel – An advanced static type checker for JavaScript
by TheRealPomax on Thursday October 13, 2022 @11:43AM
(#33192555)
Then maybe read the line again, because it very much does not say that =)
Re:Hegel – An advanced static type checker for JavaScript
by vore on Wednesday October 12, 2022 @09:58PM
(#33186266)
The line says no such thing, in fact it says the opposite. From the project page on GitHub, Hegel wants to have zero runtime type checking and have it all be proved statically at compile time.
Re:Hegel – An advanced static type checker for JavaScript
by cush on Thursday October 13, 2022 @12:27AM
(#33187240)
You're reading type safety as type checking
Re:Hegel – An advanced static type checker for JavaScript
by vore on Friday October 14, 2022 @12:55AM
(#33199787)
Then what does "type safety at runtime" even mean? TypeScript is surely also type safe at runtime then, even if the type system is unsound: that is, after all, its whole value proposition.