From: "Brian Schröder" Date: 2005-08-04T03:08:41+09:00 Subject: Re: different order of parameters... On 03/08/05, Christian Neukirchen wrote: > Yukihiro Matsumoto writes: > > > Hi, > > > > In message "Re: different order of parameters..." > > on Wed, 3 Aug 2005 21:58:17 +0900, david@vallner.net writes: > > > > |Will the core API tend towards using keyword arguments, or rather providing > > |alternatives using them to methods with positional arguments? > > > > It would, but it takes years for libraries to adopt keyword arguments. > > > > matz. > > Just imagine: > > mystring.gsub(/bar/, with: "foo").tr "abc", to: "xyz" > > [1, 2, 3].inject 0, into: { |a,e| a + e } wouldn't [1,2,3].inject 0, :with { |a,e| a+e } make more sense. (Or even "using:"). I always thought of inject as injecting a seed and a function into the enumerable. (Ohh, I know it just a sidenote and may not add anything valuable to the discussion ;) regards, Brian > > (Actually, the comma is disturbing. :-) And no, I don't want to tweak > Ruby into the next Self.) > > -- > Christian Neukirchen http://chneukirchen.org > > -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/