On Mon, 1 Dec 2003, Stanislav Malyshev wrote: >>>And if at all we drop the auto-conversion then what we get is: >>>print toupper((string)$obj); >>>Wow, no more elegant php - no more typeless php. > >PHP was never "elegant" in this meaning - you never could do >toupper($object) and expect something meaningful. I also don't see any >elegancy in it - just more crypic way of saying the same thing. I see no >problem at all in writing toupper($object->_toString()) - it is clear, >self-documenting and error-resistant much more than your "elegant" >version.
Couldn't agree more.. :) --Jani -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php