From: ptkwt@... (Phil Tomson) Date: 2004-08-03T04:06:34+09:00 Subject: Re: Macros in Ruby In article <20040802182747.GA7661@student.ei.uni-stuttgart.de>, Mauricio Fern�ndez wrote: >On Tue, Aug 03, 2004 at 12:45:02AM +0900, jim@freeze.org wrote: >> I've heard Matz say that Ruby will not support macros. >> They are too easily abused and can mutate the language. >> Besides, you can achieve the same powerful affect using >> blocks. > >I've sometimes found myself wanting macros for things that *cannot* be >done with blocks currently; however, in most cases they could have been >accomplished easily had the often proposed extensions to Binding and >Kernel#caller been implemented. > Can you give some examples? Phil