in reply to Dereferencing code refs with & vs. ->()
"I prefer the former, since that's the way I'm used to dereferencing other things."
You don't actually use -> to de-referencing, you use it to access a member of a collection. When you dereference a hash or an array, you will use @ and %. In this sense, &$thingy holds more consistancy there.
-> fits well with class method, as class can be viewed as a collection of properties and methods.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dereferencing code refs with & vs. ->()
by sauoq (Abbot) on Sep 23, 2005 at 01:43 UTC |