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.

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, then

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 rea

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: > Luke Palmer wrote: > >That's quite nice, but I've been kind of wanting to go the other way. > >You know, not every operation in Perl 6 needs to have a punctuation > >operator. > > > >I think we should not use \, and also get rid of ^. I'm interested in > >seeing an examp

Re: proposal: use \ as none junction delimeter

2005-02-14 Thread Thomas SandlaÃ
Luke Palmer wrote: That's quite nice, but I've been kind of wanting to go the other way. You know, not every operation in Perl 6 needs to have a punctuation operator. I think we should not use \, and also get rid of ^. I'm interested in seeing an example where using ^ is readable enough over on

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 c

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 wh

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; #

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 = 1&2&3; # all > my $x = 1\2\3; # none Pugs currently implements binary infix "!" as the

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 = 1&2&3; # 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 (sho

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 l