From: Stephen White Date: 2001-08-01T23:54:59+09:00 Subject: [ruby-talk:18963] Re: Using "@" as a method name? On Wed, 1 Aug 2001, Dave Thomas wrote: > On a related note: it would be nice to be able to have the ability to > extend the repertoire of % commands. How about having > > %c{...} > > (where c is any character) invoke Kernel.build_, so This could be extended to the rest of Ruby's syntax too. Something sweet like: class RubySyntax def build_(block) ... end def if(test,yes,no) ... end def yield(block) ,,, end end which would more closely approximate Smalltalk's (?) ability to create new structures without giving up the advantages of a customised parser. -- spwhite@chariot.net.au