From: matz@... (Yukihiro Matsumoto) Date: 2002-11-19T08:48:01+09:00 Subject: Re: ruby-dev summary 18711-18810 Hi, In message "Re: ruby-dev summary 18711-18810" on 02/11/19, Paul Brannan writes: |> * We should not use external iterator (Iterator pattern). | |What are the reasons for avoiding external iterators? Using zip for |parallel iteration has a nice clean syntax, but I think I'd avoid it for |large data structures -- unless it could be defined to return some sort |of proxy object that responds to each() instead of an Array. Internal iterator is far simpler, and as powerful as external iterator, except for parallel iteration. I won't buy complexity for rarely used parallel iteration. |> a.sync_each(b,c) {|a,b,c| ... } |> # Problem: "sync_each" is not a good name. | |How about Enumerable#iterate_with? Hmm. Better than "sync_each". |> [ruby-dev:18739] change chomp! |> |> Shin-ichiro HARA suggested that String#chomp should cut off |> CR and LR at once. Knu pointed out that ruby 1.7 already acts |> like such. | |Does it do this on all platforms or only on Windows? On all platforms. matz.