4 ms·
It seems disingenuous to imply that moving to Perl 6 from Perl 5 is akin to switching to Ruby or Python (much less "touching every single line"). Perl 6 support
by somebehemoth 11y ago
It seems disingenuous to imply that moving to Perl 6 from Perl 5 is akin to switching to Ruby or Python (much less "touching every single line"). Perl 6 supports Perl 5 syntax with Inline::Perl5. So, in theory, one could move Perl 5 code directly into a Perl 6 project without changing much at all.
Edited: an earlier version of this comment that referred to an outdated FAQ (mentioning a perl 5 to 6 translator).
- chromatic 11y agoThat page looks almost six years out of date. I believe the project to which it refers has bitrotted.
- somebehemoth 11y agoYes, I updated my comment, but my point still stands: Perl 6 supports Perl 5 syntax and migrating is nowhere near as hard as was implied. Sorry for confusion.
- ribasushi 11y agoYour comment is still blatant disinformation. By the same measure Perl6 is also Python and Java and JavaScript, because somebody could make an Inline:: for any of those. You could say that a number of hooks exist to make it easier to write various Inline:: variants, and you would be correct. But claiming that there is a special soft spot for the Perl5 interpreter is factually wrong.
- somebehemoth 11y agoWhat disinformation? Perl 5 is supported when using Perl 6. The comment I replied to states: "Perl6 is such a different language that someone moving from Perl5->Perl6 will likely be mostly/completely a rewrite." Rewriting is not always necessary due to Perl5 support. The comment further states: "I guess maaayybbeee they could translate across. But it would be touching ever single line, in a transformation that would be on par with switching to Ruby (or Python I suppose)." Touching every single line is technically not necessary due to Perl 5 support. To your comment: "But claiming that there is a special soft spot for the Perl5 interpreter is factually wrong." Nowhere in my comments did I make any such claim. I was simply refuting the statement that people with Perl 5 code will have such a difficult time with Perl 6 that it would be just as painful as dropping all their Perl code and switching languages.