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

I think the "can't be bound to a variable" thing is a bit of a red herring too, especially if you're OK with Lisp and Javascript's syntax --- you can create a full-fledged Proc object with "lambda" any time you want.

The inconsistency is annoying, but 99.999% of the time, Ruby is actually giving you what you want.



Right, it just doesn't seem to be Ruby style, and it would be nice to be able to use the "pretty" block syntax to accomplish that.




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

Search: