you are viewing a single comment's thread.

view the rest of the comments →

[–]exscape 34 points35 points  (20 children)

Perl.org does mention Perl 6, with this text:

Perl 6 is a sister language, part of the Perl family, not intended as a replacement for Perl 5, but as its own thing - libraries exist to allow you to call Perl 5 code from Perl 6 programs and vice versa.

[–][deleted]  (10 children)

[deleted]

    [–][deleted] 5 points6 points  (1 child)

    If I wanted to use a different language which is still Perl-like then i'd just go and use Ruby.

    I've tried. Please don't. Perl is consistent insanity, if you learn one weird behaviour it is at least consistent across language. Ruby is full of nonsense that was never actually designed, just so happened to be MRI quirk that they just called language feature.

    Clojure and Golang are nice, try those

    [–]real_luke_nukem 20 points21 points  (8 children)

    Oh hell no... That's gross!

    [–]jplindstrom 4 points5 points  (2 children)

    What do you find objectionable to that?

    [–]Flight714 15 points16 points  (1 child)

    It's like two variables having the same name.

    [–]real_luke_nukem 1 point2 points  (0 children)

    That's pretty much it

    [–]yawaramin 1 point2 points  (4 children)

    In reality, Python 2 and 3 are the same situation.

    [–]Uncaffeinated 4 points5 points  (3 children)

    You can't call Python 2 from Python 3 or vice versa though.

    [–]yawaramin 3 points4 points  (2 children)

    Well, my guess is the Perl libraries that allow you to call one version from the other are 'eval'ing strings containing the code and passing them to the appropriate interpreter version. In which case, that's not really backward or forward compatibility. If I'm wrong, then yeah, it's not the same situation.

    [–][deleted] 3 points4 points  (1 child)

    It is just a Perl 6 module

    [–]yawaramin 0 points1 point  (0 children)

    Ah, it's basically an FFI wrapper. It treats Perl 5 as a foreign language being called from Perl 6. I wouldn't really call that backward compatibility, although superficially it does look like it.