develooper Front page | perl.perl6.language | Postings from May 2009

Re: Amazing Perl 6

Thread Previous | Thread Next
From:
Damian Conway
Date:
May 28, 2009 04:37
Subject:
Re: Amazing Perl 6
Message ID:
832f158a0905280436j6ff7c4b4y253da55a8aab052d@mail.gmail.com
Mark J. Reed asked:

> So how is this:
>
>> Any infix operator (except for non-associating operators) can be surrounded by square brackets in term position to create a list operator
>>  that reduces using that operation:
>
> reconciled with this:
>
>> Any ordinary infix operator may be enclosed in square brackets with the same meaning

The first refers to (meta)operators encountered where a term is expected;
the second refers to operators encountered where an infix is expected
(i.e. after a term).


> ?  And if &[+] means &infix:<+>, how do I refer to the Code of the
> list operator [+]?

&prefix:<[+]>

Damian

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