DEV Community

Discussion on: Convince me that types are awesome

Collapse
 
danielw profile image
Daniel Waller (he/him)

I just like that it decreases mental load for me.

I do not have to think about what the inputs to my functions are, what the outputs are, whether I have to think about null checks, etc.

It just helps me write safer code faster.
Also it's very self-documenting. I can always ask my IDE what other functions I can call on the output of another.