Re: [PHP-DEV] Throwable::addSuppressed()

2015-12-29 Thread Markus Malkusch
Dan Ackroyd: > Are you going to write an RFC for it? I'm going to do that. But if there's any time pressure feel free to take it over. Regards Markus signature.asc Description: OpenPGP digital signature

Re: [PHP-DEV] Throwable::addSuppressed()

2015-12-28 Thread Dan Ackroyd
On 28 July 2015 at 21:33, Markus Malkusch wrote: > Hi PHP > > So I read that there's this Throwable interface coming. Great! How about > extending it with: > > void Throwable::addSuppressed(Throwable exception) > > Throwable[] Throwable::getSuppressed() > > So PHP, what do you think, might a RFC f

[PHP-DEV] Throwable::addSuppressed()

2015-07-28 Thread Markus Malkusch
Hi PHP So I read that there's this Throwable interface coming. Great! How about extending it with one further method: void Throwable::addSuppressed(Throwable exception) Semantic is the same as Java's Throwable.addSuppressed()¹. Why? Well consider a code fragment which wants to close a resource

[PHP-DEV] Throwable::addSuppressed()

2015-07-28 Thread Markus Malkusch
Hi PHP So I read that there's this Throwable interface coming. Great! How about extending it with one further method: void Throwable::addSuppressed(Throwable exception) Semantic is the same as Java's Throwable.addSuppressed()¹. Why? Well consider a code fragment which wants to close a resource