in reply to Re^6: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
in thread use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
then somebody calling that function is now able to pass it, instead of a hashref, a blessed object providing the same interface; i.e. polymorphism.
This is an interesting argument. Particularly this bit:
it's not easy to, say, quickly override the order a foreach loop will traverse an array.
Any chance of you knocking up an example for this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20
by chromatic (Archbishop) on Nov 25, 2013 at 20:05 UTC | |
by BrowserUk (Patriarch) on Nov 25, 2013 at 20:26 UTC | |
by chromatic (Archbishop) on Nov 25, 2013 at 21:42 UTC | |
by BrowserUk (Patriarch) on Nov 25, 2013 at 22:48 UTC | |
by ikegami (Patriarch) on Dec 01, 2013 at 17:38 UTC |