Hacker News new | past | comments | ask | show | jobs | submit login

How is an inline function different from a demarcated and commented subsection? It seems to me that the semantic and enforced correctness benefits of functions would make using them in this way a no brainer.



This exactly when you break up a logically flat function into subfunctions, the names of those functions are simply replacing comments.


Sounds like it alright but I've never used one as they aren't available in the language I mostly use.




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

Search: