Comment

Comment by brundolf

Imagine debugging a type inference problem when there's all this hidden state

No, I'm sorry, but type annotations are where the conversation happens. It's very very important in my view that type inference is a pure - ideally easy to mentally model - function of the source code you're looking at. Type annotations let you negotiate with and probe that function, and then once you understand what it's doing and have gotten it in a good place you can remove all the ones that aren't needed

Adding (hidden!) state to that process sounds like my worst nightmare as a programmer

parent brundolf 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton