Re: Allow exceptions in __toString()
| From: | Nikita Popov | Date: | Sun, 05 Jul 2015 20:27:09 +0000 |
| Subject: | Re: Allow exceptions in __toString() | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87032@lists.php.net to get a copy of this message | ||
On Sun, Jul 5, 2015 at 10:20 PM, Johannes Schlüter <johannes@schlueters.de>
wrote:
> On Fri, 2015-07-03 at 17:57 +0200, Nikita Popov wrote:
>
>
> > I can see your concern here -- however this is nothing specific to
> > exceptions thrown from __toString(). There is are a number of ways you
> > can end up in this situation, the two most common being:
>
> I summarize this a bit freely as "We already have places which are hard
> to understand an predict, so let's add more!"
>
That, or "Let's not be hypocrites".
Nikita