Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: I want you to convince me to learn Perl

by einhverfr (Friar)
on Nov 24, 2013 at 03:58 UTC ( #1064096=note: print w/replies, xml ) Need Help??

in reply to Re^2: I want you to convince me to learn Perl
in thread I want you to convince me to learn Perl

The problem I had with Python was that there were plenty of places where, because everything is an object, I found a number of areas where things like integers were copied by reference rather than value. Maybe it's better now and maybe I wasn't doing things The One True Python Way, and it has been a few years, but I remember being really puzzled by that one.
  • Comment on Re^3: I want you to convince me to learn Perl

Replies are listed 'Best First'.
Re^4: I want you to convince me to learn Perl
by soonix (Prior) on Nov 24, 2013 at 09:57 UTC

    well, one of my first languages was Pascal, where you have to tell your subroutines whether they get their parameters by value or by reference. That possybly had made me more aware of this one.
    Which means, when I use sort, I have to pause thinking about whether it modifies in-place (Python) or returns a sorted copy (Perl)...


    copied by reference
    is just plain wrong terminology. References are used to avoid copying.
    Don't even think in such terms! That impedes yourself, and then no wonder you're puzzled... regardless in which language you program.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1064096]
[Corion]: Lady_Aleena: Hopefully someone would step up to the plate!
[Lady_Aleena]: Corion, I could give the password to the gods to hold onto just in case.
[Discipulus]: Justin Case god can always get your pwd LA ;=) they all see, they all ear, they all know ;=)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-04-26 08:12 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (471 votes). Check out past polls.