News for hackers. Stuff that matters.
Re:Ruby 3.3 by dragonwriter on Tuesday December 26, 2023 @03:26AM (#38769872)
No, in Ruby lambdas are lambdas (and are a special type of proc); the longhand way to create a lambda is to call Kernel#lambda and pass it a block (though modern Ruby has a special shorthand syntax for lambdas, as well.)

Blocks are sort of like anonymous function literals that are not first class, one (but no more than one) of which may be attached to a function call.

There are no comments on this comment yet.