On Wed, Aug 10, 2005 at 12:41:17PM -0700, Larry Wall wrote: > : If yes, what does it desugar to? > : > : my $pi is constant := 3; > : my $pi is constant ::= 3; > > In this case it desugars to > > my $pi is constant = 3; > > :-)
However, I wonder if the intention was to replace the Perl 5 form of:
use constant PI => 3;
Which is a binding that happens at compile time. It'd be somewhat
strange if this dies with undef -- or even 'Str':
my Str $x is constant = 'foo';
BEGIN { die $x };
Or do you think that people should really write ::= for constants?
Thanks,
/Autrijus/
pgpAmjBsOMSlo.pgp
Description: PGP signature
