On Fri, Feb 11, 2005 at 06:48:29PM +0100, Thomas Sandlaï wrote:
> Accepting the above completes the junction constructing operators:
> 
> my $x =      1|2|3; # any
> my $x =      1^2^3; # one
> my $x =      1&2&3; # all
> my $x =      1\2\3; # none

Pugs currently implements binary infix "!" as the "none" separator:

    $ ./pugs -e "(none 1..3).perl"
    ((1 ! 2 ! 3))

as well as the non-short-circuitting "!!" logical operator, and the
lower-precedenced "nor".

I like the "!" notation because it agrees with "!" as not, hence easier
to remember for me, but if it is agreed that "\" and "\\" works better,
I can certainly adjust to the "\" notation.

Thanks,
/Autrijus/

Attachment: pgpnevsOGysCw.pgp
Description: PGP signature

Reply via email to