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

> Languages that make it easy to define "local" functions that operate on implicitly captured state can help

You don't even need that. In many languages, you can have {}-delimited blocks which cause variables inside of them to go out of scope when control flow exits them. I've used that to great effect in Perl to keep intrinsically large functions maintainable.



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

Search: