Re: [RFC][Discussion] Objects can be declared falsifiable

From: Date: Wed, 02 Nov 2022 18:09:35 +0000
Subject: Re: [RFC][Discussion] Objects can be declared falsifiable
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-118941@lists.php.net to get a copy of this message
On Wed, 2 Nov 2022 at 18:51, Claude Pache <claude.pache@gmail.com> wrote: > > > > Le 2 nov. 2022 à 09:12, Michał Marcin Brzuchalski < > michal.brzuchalski@gmail.com> a écrit : > > > > P.S. I don't see it feasible to have objects that evaluate false in > > logical expressions. > > For better or for worse (IMHO, for worse), SimpleXMLElement > instances > representing attributeless empty elements are already falsy, so yes, it is > absolutely feasible. > > —Claude This is absolutely terrifying. Marco Pivetta https://twitter.com/Ocramius https://ocramius.github.io/

« previous php.internals (#118941) next »