in reply to Re: Autoboxing ... "Yes We Can" ( or how I learned to love TIMTOWTDI )
in thread Autoboxing ... "Yes We Can" ( or how I learned to love TIMTOWTDI ;)
I agree, but to be slightly more constructive...
A truly "flexible" solution would be to use the existing function call syntax, but extend it to call methods. (You can do this now with a UNIVERSAL::AUTOLOAD override, though that's fiddly and slow.) Writing foo($x,$y) as $x->foo($y) makes the first argument look special, where it is not for functions and multi-methods. Common Lisp got this right.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Autoboxing ... "Yes We Can" ( or how I learned to love TIMTOWTDI )
by LanX (Saint) on Dec 14, 2013 at 01:36 UTC | |
by educated_foo (Vicar) on Dec 17, 2013 at 02:55 UTC | |
by LanX (Saint) on Dec 17, 2013 at 03:45 UTC | |
by educated_foo (Vicar) on Dec 17, 2013 at 04:17 UTC | |
by LanX (Saint) on Dec 17, 2013 at 07:48 UTC | |
Re^3: Autoboxing ... "Yes We Can" ( or how I learned to love TIMTOWTDI )
by BrowserUk (Patriarch) on Dec 14, 2013 at 09:13 UTC |
In Section
Meditations