by twk · 14y ago · 0 comments
In fact, don't take my word for it, here's Dave Thomas questioning the .each requirement:
http://video2012.scotlandonrails.com/D2_ML_07-Ruby1280_b.mp4
An "each" block has the scoping you'd expect, and is more consistent with the rest of the Ruby looping constructs (like select/filter or collect/map). It's not a huge deal, but there definitely are technical reasons not to use it.
Could you perhaps provide an example of code using .each that does the wrong thing in 1.8, but the right thing in 1.9?