Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re (tilly) 2: Choose the most powerful language

by tilly (Archbishop)
on May 02, 2001 at 00:39 UTC ( #77115=note: print w/ replies, xml ) Need Help??

in reply to Re: Choose the most powerful language
in thread Choose the most powerful language

Note that the intrinsic powerfulness of a language is only a partial order. However let me reinforce the point by showing you one way in which Python (which you are learning) is more powerful than Perl.

Write code to sort an array of arrays in the most natural way that makes sense in each language and gives some sensible result. Now modify your code to take into account that the third entry in each array is an array.

Why was that easier in Python, and why did the Python answer do a better job of anticipating your future needs? What connection does this have with the usual syntax complaints about Perl?

There are other things that Perl does better than Python. This is not meant to be Python advocacy. But as you learn languages, I think it is a very valuable exercise to try and notice details like that.

Comment on Re (tilly) 2: Choose the most powerful language

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://77115]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2015-11-30 03:16 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (756 votes), past polls