From: Eero Saynatkari Date: 2006-09-19T13:22:39+09:00 Subject: Re: Splat, #to_ary and #to_a unknown wrote: > Hi -- > > On Mon, 18 Sep 2006, Yukihiro Matsumoto wrote: > >> |in 1.9? >> >> This may be an issue. > > I've always thought it was convenient to have [*x] do the expanding > on x (including strings and ranges). But if it's going to disappear, > I think it should disappear consistently, so that * doesn't start > having a totally different meaning depending on the operand's class. I dunno--you have to use Range#to_a explicitly elsewhere so I feel that would be consistent here also. I think my preferred solution would be for splat to use #to_ary and leave everything else explicit. Of course this is a very limited application of the splat operator. > David -- Posted via http://www.ruby-forum.com/.