Re: Possible syntax for code as comment

2005-01-10 Thread Stéphane Payrard
On Sun, Jan 09, 2005 at 06:31:24AM -0600, Luke Blanshard wrote: > David Storrs wrote: > >Out of curiosity, why are we all spelling 'subject' without a 'c'? > >Or is 'subjet' a word I'm not familiar with? (Honest question.) > > I assume it's a spelling error on the part of the original poster. > F

Re: Possible syntax for code as comment

2005-01-09 Thread Luke Blanshard
David Storrs wrote: Out of curiosity, why are we all spelling 'subject' without a 'c'? Or is 'subjet' a word I'm not familiar with? (Honest question.) I assume it's a spelling error on the part of the original poster. French for "subject" is "sujet" (IIRC), and "subjet" looks like a cross between

Re: Possible syntax for code as comment

2005-01-09 Thread David Storrs
On Sat, Jan 08, 2005 at 12:48:32PM -0800, Ashley Winters wrote: > > sub canon( $subjet, $complement) > -> $s = $subjet{$*Global}, $c = $complement > { > my @foo = ...; > for @foo -> $bar; $remaining = @foo.elems { > # $bar contains an element, $remaining contains the number of

Re: Possible syntax for code as comment

2005-01-08 Thread Ashley Winters
On Sat, 8 Jan 2005 21:05:20 +0100, Stéphane Payrard <[EMAIL PROTECTED]> wrote: > Anyway the particular length of variables names was not the subject of > my mail, but a good syntax for aliasing name in signatures. Hmm... how about abducting the -> operator and using default variable initializatio

Re: Possible syntax for code as comment

2005-01-08 Thread Stéphane Payrard
On Fri, Jan 07, 2005 at 09:55:39PM +0100, Juerd wrote: > Stéphane Payrard skribis 2005-01-07 21:23 (+0100): > > > my $s := $subjet; > > > my $c := $complement; > > That's what I wanted to avoid. > > Why? Do you expect to use lots of one letter aliases? > > I think it's one of the most e

Re: Possible syntax for code as comment

2005-01-07 Thread Austin Hastings
Luke Palmer wrote: Well, it'll still get that bad rap because it's as syntactically flexible as ever (moreso even), so people have all the freedom they want to write code ugly as sin. Anyway, if you want to see more Perl 6 syntax, why don't you post some "how do I"s to the list, and I'll reply with

Re: Possible syntax for code as comment

2005-01-07 Thread Juerd
Stéphane Payrard skribis 2005-01-07 21:23 (+0100): > > my $s := $subjet; > > my $c := $complement; > That's what I wanted to avoid. Why? Do you expect to use lots of one letter aliases? I think it's one of the most effective ways to kill readability. Juerd

Re: Possible syntax for code as comment

2005-01-07 Thread Luke Palmer
StÃphane Payrard writes: > > canon( subjet => $mysub, complement => $mycomp ); > > canon( :subjet($mysub) :complement($mycomp) ); > > I suppose you meant > > canon( :subjet($mysub), :complement($mycomp) ); The comma is optional between those kinds of pairs. > btw, are the parenthes

Possible syntax for code as comment

2005-01-07 Thread Stéphane Payrard
On Fri, Jan 07, 2005 at 10:28:32AM -0800, Larry Wall wrote: > On Thu, Jan 06, 2005 at 11:07:47PM +0100, Stéphane Payrard wrote: > : To get an huffmanized name and a clear one, I would like some support > syntax: > : > : sub canon( $subjet as $s , $complement as $c ) { > : # code with lots

Re: thoughts about types, and possible syntax for code as comment

2005-01-07 Thread Larry Wall
On Thu, Jan 06, 2005 at 11:07:47PM +0100, Stéphane Payrard wrote: : To get an huffmanized name and a clear one, I would like some support syntax: : : sub canon( $subjet as $s , $complement as $c ) { : # code with lots of $s and $s : } Aliasing can currently be done with the binding oper

thoughts about types, and possible syntax for code as comment

2005-01-06 Thread Stéphane Payrard
I expect Perl6 to be a language with a mix of dynamically typed and statically typed variables. In a purely statically typed language like OCAML, you generally don't need to declare the type of variables when it can be inferred. So one can benefit from the speed of static typing (no type info must