------ art_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 <sonoflilit / gmail.com> wrote: > > Hello. > > I was reading about perl6 on wikipedia for amusement today and I came upon > the "yadda yadda yadda" operator: > > <quote> > > 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 <http://en.wikipedia.org/wiki/Exception_handling> is > thrown. This operator is useful for abstract > methods<http://en.wikipedia.org/wiki/Abstract_method>, > or for marking places where the programmer intends to insert code later. > > </quote> > > > > 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? > > ------ art_47771_18110221.1153679468950--