From: Mike Wilson Date: 2001-02-14T07:35:24+09:00 Subject: [ruby-talk:10812] Re: RubyChangeRequest #U001: cut operator for short-circuiting method chains >From: "Mike Wilson" >Reply-To: ruby-talk@ruby-lang.org >To: ruby-talk@ruby-lang.org (ruby-talk ML), ruby-talk@netlab.co.jp >Subject: [ruby-talk:10804] RubyChangeRequest #U001: cut operator for >short-circuiting method chains >Date: Wed, 14 Feb 2001 05:49:43 +0900 > >Hugh Sasse posted this RCR (#U001) to the wiki. > > The idea of this is that methods such as sort!() would be ideal > to use in a chain, except for its sometimes returning nil. > I proposed that an operator (which I called cut, vaguely after > the Prolog cut) would break the chain in the case where it was > used with a nil receiver. Otherwise it would just pass on the > receiver. > > At present I cannot access the archives for some unknown reason, > but I hope to come back and amend this entry when I can find >pointers > to the discussions on this. > > > >Please discuss. > > >note: U001 - U refers to status -> Undetermined > A refers to status -> Approved > D refers to status -> Denied >I will assign numbers (i.e. please don't number them as you send stuff to >ruby-talk) >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com > In regards to the archives that Hugh was referring to, I can finally get to them, and so here they are (possibly incomplete list): [ruby-talk:6131] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/6131 [ruby-talk:6178] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/6178 [ruby-talk:03893] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/3893 [ruby-talk:03932] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/~poffice/mail/ruby-talk/3932 _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com