On 1/29/06, Yuval Kogman <[EMAIL PROTECTED]> wrote:
> Aside from that they are normal perl 6 subroutines, that simply get
> invoked during compile time instead of during runtime.

With one extra "feature".  By default (my preference) or with a trait,
parameters can get passed in as ASTs instead of real values:

    macro debug ($var) {
        qq[print '$var.text() = ' ~ $var.text()]
    }
    debug($foo  );
    # expands to
    print '$foo   = ' ~ $var  ;

We would also like a quasiquoting mechanism, so don't have to rely on
string concatenation, and we don't have to construct parse trees by
hand.  It's sort of a happy medium.  But that is as yet unspecced.

Luke

Reply via email to