Luke Palmer wrote:
But I counter that arguability by saying that you really shouldn't be
putting one() in type signatures. If you want something to be an A or a
B, and you're not doing any checking later on in the code, then it's
fine if it's both A and B. If you are doing checking later on,
Thomas Sandla writes:
Luke Palmer wrote:
But I counter that arguability by saying that you really shouldn't be
putting one() in type signatures. If you want something to be an A or a
B, and you're not doing any checking later on in the code, then it's
fine if it's both A and B. If you are
HaloO Luke,
you wrote:
if $a \ $b == 3 {...}
*If A nor B is 3 ...
What does the * in front of the if mean? Not?
With grammar reason I meant the formal grammar of Perl6
not the one of natural english. Are you aware of such reasons?
In English it's more like:
if \ $a \ $b == 3
Thomas Sandla writes:
HaloO Luke,
you wrote:
if $a \ $b == 3 {...}
*If A nor B is 3 ...
What does the * in front of the if mean? Not?
Ungrammatical
With grammar reason I meant the formal grammar of Perl6 not the one
of natural english. Are you aware of such reasons?
Ahh.
HaloO All,
it just occured to me that the lone single character reference
operator '\' is badly Huffman coded! These days references are
pretty much automagical. So my idea is to replace '\' with e.g.
'\*' which puts it in opposition to the flattening '*' and '**'
operators. And there should be a
Thomas Sandlaß wrote:
my $x = 1|2|3; # any
my $x = 1^2^3; # one
my $x = 123; # all
my $x = 1\2\3; # none
[...]
if $a $b { ... } # and
if $a || $b { ... } # or
if $a ^^ $b { ... } # xor
if $a // $b { ... } # err
if $a \\ $b { ... } # nor
Well?
that's all very Huffy (short
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 = 123; # all
my $x = 1\2\3; # none
Pugs currently implements binary infix ! as the none
Thomas Sandla writes:
This gives:
my @x = (1,2,3);
my $x = [1,2,3];
my $x = ref (1,2,3); # also without ()?
my $x = \* (1,2,3); # also without ()?
Accepting the above completes the junction constructing operators:
my $x = 1|2|3; # any
my $x = 1^2^3; # one
my $x
Autrijus Tang wrote:
as well as the non-short-circuitting !! logical operator, and the
lower-precedenced nor.
I'm not sure if '!' fits the heavy weight perl6 grammar. But why is
'nor' not short-circuitting? It only continues when the left side is
true --- like '||' and '//'. At least this is what
On Fri, Feb 11, 2005 at 07:45:33PM +0100, Thomas Sandla wrote:
Autrijus Tang wrote:
as well as the non-short-circuitting !! logical operator, and the
lower-precedenced nor.
I'm not sure if '!' fits the heavy weight perl6 grammar. But why is
'nor' not short-circuitting? It only continues
10 matches
Mail list logo