Hacker Newsnew | comments | show | ask | jobs | submit login

I can write methods that take blocks.

Sure I can do the same thing in python, but I either have to write a lambda that limits me to a single line or write a one-off named method. The latter being much less clear than do ... end.




"visit_foo" as a nested function definition, immediately before it's used in a function call, is not particularly unclear.

-----




Applications are open for YC Winter 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: