Something I took from a Dave Thomas talk, why do we always use each for
what are essentially for loops, when for is sometimes clearer, he
attributed it to cargo culting rails.

So sometimes I like to use a for in when I think it might read better.

I'm not overly attached to it though.

On Tuesday, 20 August 2013, Myron Marston wrote:

> In lib/rspec/mocks/any_instance/recorder.rb:
>
> > @@ -72,6 +73,10 @@ def unstub(method_name)
> >              raise RSpec::Mocks::MockExpectationError, "The method `#{method_name}` was not stubbed or was already unstubbed"
> >            end
> >            message_chains.remove_stub_chains_for!(method_name)
> > +          for proxy in ::RSpec::Mocks.proxies_of(@klass)
>
> Why use for here rather than the more commonly seen each?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rspec/rspec-mocks/pull/402/files#r5860440>
> .
>