From: Joey Date: 2006-07-24T03:31:11+09:00 Subject: Re: Yadda yadda yadda operator ------=_Part_47771_18110221.1153679468950 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline To be frank, no. j`ey http://www.eachmapinject.com On 7/23/06, Son SonOfLilit wrote: > > Hello. > > I was reading about perl6 on wikipedia for amusement today and I came upon > the "yadda yadda yadda" operator: > > > > if is_true() { > for @array { > ... > } > } > > The three dots above (...) are syntactically valid in Perl 6 and are > called > the "yadda-yadda operator". "..." can be used as a placeholder for code to > be inserted later. If a running program attempts to *execute* "...", > however, an exception is > thrown. This operator is useful for abstract > methods, > or for marking places where the programmer intends to insert code later. > > > > > > This seemed so useful that I thought implementing it for Ruby and > submitting > a patch, but then caught myself and wrote: > > class Kernel > > def yadda > > raise "Yadda operator reached" > > end > > end > > > > How elegant Ruby is. > > > > Does anyone else think that this is Standard Library material in the > making? > > ------=_Part_47771_18110221.1153679468950--