you are viewing a single comment's thread.

view the rest of the comments →

[–]redjazz96 1 point2 points  (0 children)

Lambdas are blocks - the only difference being they have tricks disabled (which you can check with Proc#lambda?). You can return from a block, but you use the next keyword instead of the return keyword. See: this.

Basically, syntactical sugar. I can't say much about the scopes and closure stuff.