Re: [RFC] unset(): return bool if the variable has existed

From: Date: Thu, 07 Mar 2013 19:57:24 +0000
Subject: Re: [RFC] unset(): return bool if the variable has existed
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi!

> The main practical value is in the __unset magic method. You can now
> communicate through the "proper" way of a language construct with an
> __unset method. (success or failure)

I'm not sure how useful is that based on your example - unset could
throw the exception as well... And the whole case seems still unclear -
what is "false" supposed to mean in general case? Property didn't exist?
Property can not be unset due to special semantics?
-- 
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227


Thread (21 messages)

« previous php.internals (#66539) next »