← Back to Upcase

Blocks, Procs, and Lambdas


(Justin Gordon) #1

Ran into an interesting article on Blocks, Procs, Lambdas:

http://www.reactive.io/tips/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/

Any opinions on how this advice has or has not changed with newer versions of Ruby?


(Kevin Chan) #2

When I learn that article by using Ruby 2.1, everything is fine.

Deprecations are rarely mentioned in the API doc

You can also check in this useful article and SO link . There’s also interesting static code analyzer, RuboCop.


(Nailson Martins) #3

Very interesting. Thanks for the article :smile: