Perl 5.24 is now 100% forwards compatible with Perl 6.

The Perl community is agreed that Perl 6 is, in fact, a completely different 
language than Perl 5. Unlike Python 3 which differs only in a few minor (but 
important) ways from Python 2, Perl 6 is a significant break from the past, 
enough to justify calling it a different language and not just a backwards-
incompatible version change. And yet Perl 5 now can run Perl 6 scripts.


Well, kinda sorta. I'm not really pulling your leg. But Perl has a feature that 
if you tell it to run a file with a hashbang line, it will call the given 
executable to run that file. That's now been improved to recognise Perl6 as an 
external executable, instead of trying to run it as Perl 5 code.

https://metacpan.org/pod/distribution/perl/pod/perldelta.pod#Hashbang-redirection-to-Perl-6


Should Python do something similar? At least for Python 2/3 code?



-- 
Steve

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to