Re: proposal: use \ as none junction delimeter

2005-02-15 Thread Thomas Sandlaß
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,

Re: proposal: use \ as none junction delimeter

2005-02-15 Thread Luke Palmer
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

Re: proposal: use \ as none junction delimeter

2005-02-14 Thread Thomas Sandlaß
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

Re: proposal: use \ as none junction delimeter

2005-02-14 Thread Luke Palmer
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.

proposal: use \ as none junction delimeter

2005-02-11 Thread Thomas Sandlaß
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

Re: proposal: use \ as none junction delimeter

2005-02-11 Thread Aldo Calpini
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

Re: proposal: use \ as none junction delimeter

2005-02-11 Thread Autrijus Tang
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

Re: proposal: use \ as none junction delimeter

2005-02-11 Thread Luke Palmer
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

Re: proposal: use \ as none junction delimeter

2005-02-11 Thread Thomas Sandlaß
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

Re: proposal: use \ as none junction delimeter

2005-02-11 Thread Autrijus Tang
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