Hacker News new | past | comments | ask | show | jobs | submit login

Blocks are just a convenient way to create and pass a proc. They aren’t a special data type.

Lambdas and procs are similar. The only real differences are that lambdas check to see if they have the correct number of arguments, and returning inside a lambda returns from the enclosing scope.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: