From: Martin Hansen Date: 2010-04-20T17:55:12+09:00 Subject: Re: Writing a parser > At the moment I am not sure where we stand. You seem to insist that > something with my implementation is wrong and external iteration is > better - maybe because you have read about it in some book. > Realistically the need for external iteration rarely surfaces, mostly > it is if you need to iterate two or more collections in lock step. In > all other cases using #each and like mechanisms is superior because it > is less error prone. Robert, your help is much appreciated. I have been researching and trying to get a grasp at the topics at hand: mixins, enumerable, etc - and trying to keep an open mind to alternatives. Todays task is to get your suggestion up and running and play with it by writing a bunch of unit tests (a great way to learn btw). Me needs to become friends with stubs (stringio) and mocks (flexmock) ... Cheers, Martin -- Posted via http://www.ruby-forum.com/.