I work on a massive codebase, 3m loc, the ability to document that we throw SomeAssertionException in *insert circumstance* is extremely appealing. It would allow us to structure the documentation and the code in a way that really makes sense especially for new developers. The alternatives are not nice, in my opinion. It's not about runtime, and the ability to catch specific exceptions by name, at all, there shouldn't be any catch blocks for AssertionExceptions in deployed code.
Cheers Joe On Fri, Feb 20, 2015 at 11:06 AM, Leigh <lei...@gmail.com> wrote: > On 20 February 2015 at 08:47, Markus Fischer <mar...@fischer.name> wrote: > > This sounds two-folded to me: "very cool" (albeit I can't see a use-case > > right now) on one hand and "utter magic" on the other. > > Inclined to agree. > > @Joe what use-case prompted this feature? > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >