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

An advantage of using intermediate variables is that they provide for a way to add comments without adding comments, in the form of the name of the intermediate result.

That helps in particular when you are calling several generic functions in a row. Names of local variables can contain a bit more of the terminology of the problem at hand.



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: