News for hackers. Stuff that matters.
Re:Code blocks in Python by bicknergseng on Friday April 20, 2012 @12:35PM (#3868613)
I also question the utility and reason behind this. I spend a lot of time fixing memory leaks from lousy developers who use closures and anonymous functions incorrectly in JavaScript. I'm just learning Ruby as well, and see a lot of room for similar black-boxing pitfalls in procs and blocks. It seems to me like you're reducing code size at the expense of readability and debugability. That might be the ruby way, but it seems to me like a bad way to program.

Like I said, I'm just learning... so I'd love counterexamples and reasons why I'm wrong.

There are no comments on this comment yet.