Most Perl 6 will look like Perl 5

Mark Overmeer mark at overmeer.net
Fri Jan 25 10:41:36 GMT 2008


* Dirk Koopman (djk at tobit.co.uk) [080125 09:50]:
> >>  for 0..6 -> $t {
> 
> I shall enjoy the argument that ensues when someone notices that in 
> perl6 '$t' seems to have become implicitly automatic whilst '$is_ok' 
> still has to be explicitly declared as such. At least perl5 is regular 
> in that respect.

It certainly makes this more complicated:

  my $x;
  foreach $x (@l)
  {   last if $x > 5;
  }
  print "Found $x\n";

  my $x;
  for @l -> $x { ??? }
  print "Found $x\n";

The $x of the for loop is a different local, within the body.  As far
as I remember, we need to do something with OUTER, in that case.
Any Perl6 specialists around?

> I imagine that the change of meaning of '->' will not help conversion
> either.

There is no need for conversion: Perl5 code can be merged with Perl6
code on top of Parrot.

> But I shall reserve judgement (if not my concern) until perl 6.0 
> actually appears in a year or three or ...

... and then we still lack the libraries, development tools, and
CPAN support ...
-- 
Regards,

               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net



More information about the london.pm mailing list