in reply to Re: Honest question about Perl, Python and Ruby
in thread Honest question about Perl, Python and Ruby

Python, is object based from the ground up

Are you thinking of Ruby? Quoting Matz from An Interview with the Creator of Ruby:

Then I came across Python. It was an interpretive, object-oriented language. But I didn't feel like it was a "scripting" language. In addition, it was a hybrid language of procedural programming and object-oriented programming. I wanted a scripting language that was more powerful than Perl, and more object-oriented than Python.

I like the mandatory documentation that you have to do in Python code.

Are you referring to Docstrings? In any case, I can assure you that documentation is not mandatory in Python. Even if it were, is it good and useful documentation?

BTW, you can easily make documentation of your Perl modules "mandatory" by adding a test that uses Test::Pod::Coverage. As you might expect, this only enforces documentation coverage, not that the documentation is well-written.

The abundance of Python 2 programs will not run under Perl 3.

I wouldn't hold that against Python because the abundance of Perl 5 programs won't run under Perl 3 either. :)

  • Comment on Re^2: Honest question about Perl, Python and Ruby

Replies are listed 'Best First'.
Re^3: Honest question about Perl, Python and Ruby
by Anonymous Monk on Feb 07, 2015 at 09:03 UTC

    I wouldn't hold that against Python because the abundance of Perl 5 programs won't run under Perl 3 either. :)

    And then what happened?

    Pretty much all perl written since 1994 will still run on perl today, python won't

    http://perl5.git.perl.org/perl.git/tags

    ... 21 years ago perl-5a2 1994-Oct-07 22 years ago perl-4.0.36 1993-Feb-05 23 years ago perl-4.0.00 1991-Mar-21 24 years ago perl-3.044 1991-Jan-12 25 years ago perl-3.000 1989-Oct-18 26 years ago perl-2.001 1988-Jun-28 26 years ago perl-2.0 1988-Jun-05 27 years ago perl-1.0 1987-Dec-18

    https://en.wikipedia.org/wiki/History_of_Python

    Python 1.0 - January 1994 Python 1.6 - September 5, 2000 Python 2.0 - October 16, 2000 Python 2.7 - July 3, 2010 Python 3.0 - December 3, 2008 Python 3.4 - March 16, 2014
Re^3: Honest question about Perl, Python and Ruby
by igoryonya (Pilgrim) on Feb 07, 2015 at 08:15 UTC
    Yes, I ment a docstring. I have a shallow introduction to python, so I thought, it was mandatory, but I've meant it as a plus anyway, since it will probably enforce the developers to document their programs better, then in other languages.
    I wouldn't hold that against Python because the abundance of Perl 5 programs won't run under Perl 3 either. :)
    Not a fair comparison, since, I was talking about a backward compatibility, but you are talking about older language, supporting programs, developed for the newer syntax, unless, you were joking.

      Not a fair comparison, since, I was talking about a backward compatibility, but you are talking about older language, supporting programs, developed for the newer syntax, unless, you were joking.
      Sorry, I was joking and made a poor joke. All I was trying to indicate with my bad joke is that in:
      The abundance of Python 2 programs will not run under Perl 3
      you made a typo: Perl 3 Python 3.

      And yes, re Python 3 breaking compatibility with Python 2, I strongly agree with you.