From: Kevin Date: 2012-02-08T09:30:42+09:00 Subject: Re: Using _ like in Scala? On Tue, Feb 7, 2012 at 1:49 PM, Chad Perrin wrote: > On Tue, Feb 07, 2012 at 02:56:30PM +0900, Kevin wrote: >> >> It would make more sense to just eliminate the need to type even a >> place holder while keeping the current form.  I.E. fruits.each{puts} >> Or come up with semantics that allow the interpreter to accept an >> input like "puts fruits" and have Ruby unwind the collection. > > What -- like this? > >    $ irb >    >> fruits = ['apple', 'orange'] >    => ["apple", "orange"] >    >> puts fruits >    apple >    orange >    => nil > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] > Yes. Does this only work in the REPL? I've never tried that kind of order in real code.