Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c

From: Date: Mon, 01 Dec 2003 11:04:21 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-5860@lists.php.net to get a copy of this message
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

« previous php.internals (#5860) next »