Matthew wrote:
use base 16;
my $a = 10;
say $a;
puts the number 0x10 into $a, and outputs `10'. Here, say $a.fmt('%d')
would output `16'.
As someone who has implemented, and used, mini-languages with such a
feature, I'd say that the confusion that it would cause does
significantly outweigh
Matthew wrote:
Today I propose a pragma that changes how numbers are presented in Perl
6. The idea arises from a discussion on the freenode channel #perl6,
available here: http://irclog.perlgeek.de/perl6/2010-09-01#i_2773432
I only see this pragma as being useful within limited circumstances,