> >  my int ($pre, $in, $post) is constant = (0..2);
> > 
> > Two things "type and property" that belong so together
> 
> Do they? Surely the type and constancy of a variable are 
> entirely orthogonal to each other.

Oh yes. Psycho-affectivly it is disturbing seeing the group of variables
($pre, $in, $post) teared apart from the initilizing (0..2). This is my
second step in the brain when analysing it. And this is prone to
problems like in:

 my int ($one, $two, $three, $four, $five, $six, $seven ) is Prop(
'camel', 'perl', 'camel', 'perl' ) = (0..6);

where the distance grows with property-syntax-complexity.

> Besides, if you want them near each other, you can write them 
> this way:
> 
>       my ($pre, $in, $post) returns int is constant = (0..2);
> 
> Damian

Same problem as above. 

Following fragments should stay adjacent:

 ($pre, $in, $post) = (0..2);

and then fragments remains:

 my * returns int is constant

Suggestion: it could be pieced to

 my constant int ($pre, $in, $post ) = (0..2);

which i guess is far superior (of course i hadn't done any field testing
and making statistics over it). Btw: it is self-explanatory for many
cross-language-programmers.

Excerpt: Ony of my fears orginate from the idea that someone new to
perl6 could be put off by such hard nuts during the very basics of
variable decleration.

Murat

Reply via email to