Ken Fox [EMAIL PROTECTED] wrote:
use complex;
my $c = 2__3; # 2 + 3i
That's really gross. 2 + 3i is just add(integer(2), complex(0,3)) with
compile-time constant folding eliminating the add(). I would even go so
far as to say that 3i is just syntactic sugar for
David Mitchell wrote:
Now of course if we have the luxury of deciding that core perl 'knows'
about complex numbers, then of the parser can be made to recognise ...
The core doesn't need to know -- that was my point. All the core needs
is the basic constant folding rules _it_already_has_
(Ask, can we get the below added to the perl6-internals welcome message?
Thanks)
Folks,
It's about time to start into the serious work on perl 6. Unfortunately we
don't quite yet have the final license for perl 6, which makes any code
submissions a touch dicey. Until we have a final license