N
nobull
This was new to me.
I guessed that because you didn't think the map() trick had a high
"blink factor".
Then I'm sorry to inform you that the idiom you prefer is still going
to cause a WTF moment for the casual reader. At least with a simple
assignment, it is intuitively obvious that something is being copied.
Not once you get used to it (I certainly blinked at the map example).
There is no reason for @{[@ar]} to become a familiar idiom. It doesn't
do anything that is often going to be necessary. It's not difficult to
decipher, but it still takes a blink.
Well _I_ encounter it often enough that I wanted a way to avoid the
ugliness of the explicit copy.
I was even moved to asked a question here
(<[email protected]>).
http://groups.google.com/[email protected]
This is something I rarely do!
I will do that, if I can find it.
Actually it's an interesting sub-thread of a rather less interesting
thread over in clp.moderated.
Unless you have MJD massively scored up [ doesn't everyone? ] you
could easily have missed it. It starts at:
From: Mark Jason Dominus <[email protected]>
Newsgroups: comp.lang.perl.moderated
Subject: Re: bug or gotcha?
Date: Mon, 29 Sep 2003 18:16:53 -0400
Message-ID: <[email protected]>