From: Tobias Reif Date: 2001-11-29T23:35:53+09:00 Subject: [ruby-talk:26899] Re: short article draft for review David, thanks for the feedback :) > To me, that doesn't illustrate iterator power very dramatically or > clearly. I guess it's iterating... ^^^^^^ Isn't it clearly iterating? > but when I think of a Ruby > iterator, I think of a method that iterates over something and > "yield"s to a block. It should be very simple, being the second example. > Yeah, like that :-) My advice would be to include an example that > involves an interator (without recursion), and then, if you think it's > important, a recursion example. But that's what I did: An iteration example: very simple, without blocks or recursion; then comes an example of recursion: with blocks passed around. Or did you mean 1. iterator with block 2. recursion ? I don't see the significant advantage there. > One other thing: In method definitions, putting the arg list in parens > might be a good idea. (Personally I dislike the non-paren look, me too > but > here I'm thinking of people who might like it ultimately but might be > confused by it initially.) I guess most people coming from other could like less parens. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/