"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.
In reply to Re: Dereferencing code refs with & vs. ->()
by pg
in thread Dereferencing code refs with & vs. ->()
by doran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |