Link Details

Link 11992 thumbnail
User 206207 avatar

By pate
via cloverhead.blogspot.com
Published: Jan 26 2007 / 04:11

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 ...
  • 8
  • 0
  • 1332
  • 386

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (8)



Voters Against This Link (0)