At 10:27 AM -0500 3/27/02, Aaron Sherman wrote:
>I *can* see some advantage in:
>
> macro mygrep ($code is macroblock, *@list) {
> my @newlist = ();
> for @list {
> push @newlist, $_ if $code.();
> }
> return @newlist;
> }
> @x = mygrep {/\S/} $fh.getlines();
>
>where no code reference is ever created. It could be abused mercilessly,
>but I can see the massive savings in performance that we would reap,
>especially when translating/compiling this code for native or JIT
>execution. This is because we don't have to fire a function call each
>time we execute the block.
Just out of curiosity, is there anything macros (in the Lisp sense)
can do that source filters can't?
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk