Marnen Laibow-Koser wrote: > The for loop in C is like the for loop in BASIC, not the for...in loop > in Ruby. Ruby's for...in is like the for...in (or foreach) in Perl, > PHP, or recent versions of Java. Despite the use of the same keyword, > they're two very different constructs. > >> >>> Best, >>> -- >>> Marnen Laibow-Koser >>> http://www.marnen.org >>> mar...@marnen.org >> >> I'm interested to get people's input on this. Some Rails programmers >> still persist on using FOR. Understandable if they have extensive >> programming background including Ruby. > > ...which I do. But for...in just doesn't feel like a good fit for Ruby > to me -- it feels more like syntactic sugar for Perl and PHP > programmers.
That's likely to be the reason for the choice to use FOR, then. Interesting. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.