in reply to Perl 5, Python, Rakudo, C/C++, Java, Lua?

Looks interesting. I am watching some parts of Perl 6 and this could be quite helpful. I am however taken aback by "most of CPAN should work" because I am not sure what would be the obstacles there. Are there specific features that would not work? Like maybe tail calls via goto &subname? Or is this more like "we haven't tested it entirely?

If Perl 5 modules work flawlessly in Perl 6 including language features unsupported in the latter, then that would give me additional confidence. I actually use tail calls in Perl 5 and that is one of the larger features that if it is not supported would keep me from upgrading, but if I can put it in a Perl 5 module, then no harm done.

  • Comment on Re: Perl 5, Python, Rakudo, C/C++, Java, Lua?

Replies are listed 'Best First'.
Re^2: Perl 5, Python, Rakudo, C/C++, Java, Lua?
by raiph (Deacon) on Apr 05, 2015 at 01:01 UTC
      Thanks for the nextwith stuff. I will keep an eye on that.
Re^2: Perl 5, Python, Rakudo, C/C++, Java, Lua?
by Your Mother (Archbishop) on Apr 01, 2015 at 16:43 UTC

    You can do tail calls in Perl5 now: 5.4.2 Creating Tail Calls in Higher Order Perl; see also Sub::Call::Tail.

    The CPAN has plenty of “interesting” code that doesn’t work everywhere Perl5 does. It seems likely that a slightly smaller portion would be able work under any kind of harness, Perl6 or otherwise.

      Yes you can. goto &subname also does them. I don't see anything in Perl 6 docs for this functionality however.