From: dblack@... Date: 2006-10-10T23:57:02+09:00 Subject: Re: [ruby-cvs:18323] ruby: * eval.c (splat_value): use "to_splat" instead of "to_ary" to Hi -- On Tue, 10 Oct 2006, James Edward Gray II wrote: > On Oct 10, 2006, at 8:43 AM, Yukihiro Matsumoto wrote: > >> Hi, >> >> In message "Re: [ruby-cvs:18323] ruby: * eval.c (splat_value): use >> "to_splat" instead of "to_ary" to" >> on Tue, 10 Oct 2006 22:36:44 +0900, "Rick DeNatale" >> writes: >> >> If it's possible, I'd like to hear your feeling against the changes in >> detail. Can you express? Why don't you right? > > I believe I understand where Rick is coming from. > > He's saying that when we do a *whatever, we are actively asking that whatever > be split into values. Because we consciously make that choice, to_a (a > general solution) is fine. We understand that we are calling to_a and > willingly accept the consequences. If we want to divide up a string into > arguments that way, that's our business not Ruby's business. > > At least, that's what I *think* he means. Correct me if I'm wrong Rick. I've been thinking about the whole thing, and I tend to agree. I'm not sure why we need a whole star-related sub-system, including a method hook, independent of the existing array sub-system. I think the star can be understood as syntactic sugar for to_a. David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org