2 ms·
> The TS approach of "please at least annotate all your function signatures" The whole signature or just the parameters? I thought typescript is pretty chill a
by azangru 3y ago
> The TS approach of "please at least annotate all your function signatures"
The whole signature or just the parameters? I thought typescript is pretty chill about inferring the return type on its own.
- whizzter 3y agoIt usually is as long as you don't do anything recursive (and a few select polymorphic instances), I can see people getting bitten by it. Having written inferring compilers and used C++ extensively I appreciate the workings, but I can also see people getting stuck with it.