smuj smuj-at-iol.ie |Perl 6| wrote:
Do we still get to keep the current semantics if we specificially declare a string? e.g.

my Str $x = "-100";
$x++;
say $x;  # prints -101

my $y = "-100";
$y++;
say $y;  # prints -99

Cheers,
smuj

I'd vote for that.

As well as a hand full of adjectives.

 $x++ :p5         # do it the old way, I just ported my program.
 $x++ :field       # I'm interested in preserving lengths of runs
$x++ :num # Preserve meanings of things that look like numeric literals
 $x++ :order     # I'm interested in preserving comparison order

Just an idea, especially the first one.

Reply via email to