News for hackers. Stuff that matters.
Re:Hegel – An advanced static type checker for JavaScript by BlargMcLarg on Thursday October 13, 2022 @02:41AM (#33187974)
>though I have to say, in practice this is an unusual case that I never really see

They happen once in a blue moon and when they do, you hate your life for a day. Maybe a week.

Plain values also have the problem of losing context. This primarily hits those who don't know the code. That's the whole selling point of OOB and related abstractions, anyway.

Both of the above happening in tandem isn't that rare and a realistic risk factor for big projects.

Re:Hegel – An advanced static type checker for JavaScript by brundolf on Thursday October 13, 2022 @09:27AM (#33190657)
> you hate your life for a day. Maybe a week.

I'm not sure why I would? TypeScript would still lead me straight to the problem via type incompatibilities; it just wouldn't perform the fix for me automatically in this one specific case