Procs, Blocks and Lambdas

I was contemplating writing my own piece on the difference between ruby Blocks, Procs And Lambdas in an attempt to solidify my understanding. However, I found these two excellent articles that do a much better job than I could possibly do. So I thought I would post them here together for my own reference more than anything.

Ruby Procs and the Difference Between Them by Alan Skorkin

Jessica Kerr’s explanation is particularly interesting since she looks at the pitfalls of approaching ruby with a purest functional mind set. Specifically treating a block as a function.

Passing functions in Ruby: harder than it looks by Jessica Kerr

This entry was posted in Programming and tagged , . Bookmark the permalink.