From: Dossy Date: 2002-06-12T23:19:57+09:00 Subject: Re: ruby-dev summary 17252-17356 On 2002.06.12, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: ruby-dev summary 17252-17356" > on 02/06/12, Carlos writes: > > |and > | 5.times do |;a| a=gets; print a end > |or > | 5.times do <;a> a=gets; print a end > |? > > How about > > 5.times do a:=gets; print a end > ? > > Or even > > 5.times do let{print a} end > ? Or, how about: 5.times do(a) a=gets; print a end To me, that's the least surprise. It makes "a" look like a defined parameter of the do "method" so to speak. It breaks down with the {} shorthand: 5.times { (a) a=gets; print a } -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)