Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Humans are not great compilers and spending time try to figure out what the hell is returned from a function

That's why I leave it to the compiler and don't try to do it as a human.



If you aren't able to figure out the return type then something has gone wrong: maybe the language or code is too complex, or maybe you don't understand the code very well.


As was said above, humans aren't great at it. If I want to know the type of an expression, I ask the compiler.


> humans aren't great at it

Yeah that's fine, although my point is that being unable to figure out the return type is a symptom of a bigger problem imo. It means we're outsmarting ourselves.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: