Re: pass by reference



Michele Dondi wrote:
On Thu, 09 Aug 2007 11:28:07 -0700, Jim Gibson
<jgibson@xxxxxxxxxxxxxxxxx> wrote:

$_ is a name, just not a pronounceable one!

In English, it's "it".

Yes, in the context of for loops*, map, and such, from what I understand
that's exactly what "it" is :)

* Though it doesn't seem to be the came of a while loop onless you're
reading a handle (file, pipe, socket, etc) using the <HANDLE> systax
that sets the line to $_ each time around.

--
CL


.



Relevant Pages

  • Re: Confessions of a Python fanboy
    ... This method can really cleanup some ugly for loops, ... The issue here is of course that `map` and comprehensions are transformations. ... Furthermore and this is the most problematic limitation of Python here, `lambda` doesn't allow complex transformations due to its restrictions, so one has to switch to named functions which works but isn't sexy. ... There are no limitations, but once again there never are. ...
    (comp.lang.python)
  • Re: Confessions of a Python fanboy
    ... This method can really cleanup some ugly for loops, ... The issue here is of course that `map` and comprehensions are transformations. ... Furthermore and this is the most problematic limitation of Python here, `lambda` doesn't allow complex transformations due to its restrictions, so one has to switch to named functions which works but isn't sexy (and tends to lower readability imo). ...
    (comp.lang.python)
  • Re: map
    ... of the inherent complexity or lack thereof of that which they are trying to ... confidence by experimenting and making mistakes, ... do with loops, and I used this to solve the problem I needed to. ... However, by asking *why* map didn't work, I now understand how map ...
    (comp.lang.python)
  • Re: Using java.util.map
    ... You perform a lookup and an insertion. ... these operations degenerate each element in the map would have been visited. ... create an extra pairobject for each entry), and the Java way is dirty. ... problems understanding simple for loops of the sort ...
    (comp.lang.java.advocacy)
  • Re: Confessions of a Python fanboy
    ... This method can really cleanup some ugly for loops, ... The issue here is of course that `map` and comprehensions are transformations. ... Furthermore and this is the most problematic limitation of Python here, `lambda` doesn't allow complex transformations due to its restrictions, so one has to switch to named functions which works but isn't sexy (and tends to lower readability imo). ...
    (comp.lang.python)

Loading