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

> I'll believe destroying stacktrace information is a valid complaint when people start complaining that for loops destroy the entire history of previous values the loop variables have had.

That is a common criticism. You're referring to the functional programmers. They would typically argue that building up state based on transient loop variables is a mistake. The body of a loop ideally should be (at the time any stack trace gets thrown) a pure function of constant values and a range that is being iterated over while being preserved. That makes debugging easier.



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

Search: