develooper Front page | perl.module-authors | Postings from May 2007

Re: LISP module from CPAN

Thread Previous | Thread Next
From:
A. Pagaltzis
Date:
May 9, 2007 10:41
Subject:
Re: LISP module from CPAN
Message ID:
20070509174113.GA7432@klangraum
* Vadim <vadim@vkonovalov.ru> [2007-05-09 12:05]:
> Jonathan Rockway wrote:
> >As for Perl being a LISP... Perl is missing macros (unless you
> >count opgrep 
> 
> I consider eval "$string" as a replacement of macros.

Not even close. `eval EXPR` burdens you with generating
syntactically correct code and moves everything from compile time
to runtime.

It’s like the difference between doing

    *foo = sub { $bar };

and

    my $_bar = quotemeta $bar;
    eval "sub foo { \"$_bar\" }";

`eval EXPR` is useful, but a poor substitute for solid
metaprogramming facilities.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About