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] Re: Move internals discussion to a better medium

2015-08-02 Thread Markus Malkusch
, OP was complaining about missing interfaces and features, which is simply not true. You can communicate through Email, NNTP and if one wants a webinterface so hardly just wrap one around NNTP. How can it be more accessible by reducing it to some webinterface only? Markus Malkusch -- PHP Interna

[PHP-DEV] Re: Move internals discussion to a better medium

2015-08-02 Thread Markus Malkusch
obably I'm the only guy who is using this old technology. Sorry I'm from the last millenium. Well nowadays there's obviously only web. Markus Malkusch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Move internals discussion to a better medium

2015-08-02 Thread Markus Malkusch
Niklas Keller wrote: > 2015-08-02 14:32 GMT+02:00 Markus Malkusch : > >> What wrong with <news://news.php.net/>? > > That's a joke, right? No it's not, why should it? You did notice the news:// scheme, did you? > We're discussing issues here, so what&#x

[PHP-DEV] Re: Move internals discussion to a better medium

2015-08-02 Thread Markus Malkusch
f7...@pb1.pair.com> >- GitHub issues are searchable. You have tags. Newsserver are searchable as well. At least you could wrap the current infrastructure easily into a search engine. Markus Malkusch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2015-08-02 Thread Markus Malkusch
on't need that information as we explicitly know by catching the exception already the context. Markus Malkusch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2015-08-02 Thread Markus Malkusch
Markus Malkusch: > try { > throw new Exception("Exception 1"); > > } finally { > try { > > } finally { > throw new Exception("Exception 3"); > } > } > > In this case the only place for the suppressed exception 1

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

2015-08-02 Thread Markus Malkusch
Markus Malkusch: > The try-finally scenario involves only one supressed > exception. I'd like to see a possibility to add more supressed > exceptions Actually try-finally can already involve several supressed exceptions as well: try { throw new Exception("Exception 1"

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

2015-08-02 Thread Markus Malkusch
nce. Also I like the evolving of it. I guess drafting a RFC might be an option then. I will let this idea brew a bit and then start with that, assuming doing so is fine. Markus Malkusch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2015-08-01 Thread Markus Malkusch
Christoph Becker: > Markus Malkusch wrote: >> >> I'd like to revise that. I'd just learned that finally does indeed fit >> here, as it would automatically glue exceptions: [..] > Note that there's an open bug report (<https://bugs.php.net/68270>) &g

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

2015-08-01 Thread Markus Malkusch
Markus Malkusch: > 2) You are loosing one stack trace I'd like to revise that. I'd just learned that finally does indeed fit here, as it would automatically glue exceptions: try { throw new Exception("A"); } finally { throw new Exception("B"); } This

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

2015-07-31 Thread Markus Malkusch
t;. 2) You are loosing one stack trace (in this case from e1). For me the stack trace is the most important information in the exception. In this use case there are two stack traces and I want to have both of them. And then again this is just a simple example scenario with one resource.

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

2015-07-31 Thread Markus Malkusch
here, but for the beginning I'd like to focus on Throwable::addSupressed(). So do you still see no use case? Markus Malkusch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] cancel of

2015-07-28 Thread Markus Malkusch
cancel by original author -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Throwable::addSuppressed()

2015-07-28 Thread Markus Malkusch
there's one further method needed: Throwable[] Throwable::getSuppressed() So PHP, what do you think, might a RFC find acceptance? Best wishes Markus Malkusch [1]: http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable- -- PHP Internals - PHP Run

[PHP-DEV] Throwable::addSuppressed()

2015-07-28 Thread Markus Malkusch
there's one further method needed: Throwable[] Throwable::getSuppressed() So PHP, what do you think, might a RFC find acceptance? Best wishes Markus Malkusch [1]: http://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable- signature.asc Description: OpenPGP digital signature