http://qs321.pair.com?node_id=1067083


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.