From: Trans Date: 2005-08-05T11:01:07+09:00 Subject: Re: ruby-dev summary 26468-26661 Yukihiro Matsumoto wrote: > Hi, > > In message "Re: ruby-dev summary 26468-26661" > on Fri, 5 Aug 2005 10:06:05 +0900, "Trans" writes: > > |I suprised no one's picked up on this. > | > | [:a,:b,:c].each do n(i) > | p n.count; > | end > | #=> 1 2 3 > > The meaning of above code is not obvious for me at all, besides its > syntax conflicts existing ones. Read as "each do n of i ... end" such that "n of i" is the block name and args. That's too bad if syntax conflicts, I had though maybe it was possible. But even so I think giveng the block handle (i.e. a name such as n above) has a lot of merit. No more need fo _with_index for instance. Perhaps you can find another way to have block handle. Thanks, T. P.S. I sent this post once but it seems to have been lost. Forgive me if it comes up twice.