Max Zone
Posts: 9170
Nickname: dzone
Registered: Jun, 2006
|
dzone.com is a link-sharing community where member participation determines what gets published
|
|
|
|
Block Params vs Yield
|
Posted: Jan 26, 2007 3:44 AM
|
|
|
This post originated from an RSS feed registered with Ruby Buzz
by Max Zone.
|
Original Post: Block Params vs Yield
Feed Title: dzone.com: ruby
Feed URL: http://feeds.dzone.com/dzone/ruby
Feed Description: dzone.com: fresh ruby and rails links for developers
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Max Zone
Latest Posts From dzone.com: ruby
|
|
Functionally, passing blocks and using yield are equivalent in Ruby. So I got to thinking about other possible reasons to go with one style or the other. One quick benchmark later, I had my answer ...
» Visit DZone Jobs for great people and great opportunities.
Read: Block Params vs Yield
|
|