Re: [PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-26 Thread Joost Koehoorn
On 26 juni 2013 at 08:50:55, Patrick ALLAERT (patrickalla...@php.net) wrote: 2013/6/25 Nikita Popov :  > but I'm against the generic catch{} statement.  I'm sharing Nikita's opinion, with the difference of a bit more  enthusiasm on leaving off the variable as it could make it more  obvious that th

Re: [PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-25 Thread Patrick ALLAERT
2013/6/25 Nikita Popov : > but I'm against the generic catch{} statement. I'm sharing Nikita's opinion, with the difference of a bit more enthusiasm on leaving off the variable as it could make it more obvious that there is no intention in using the variable, and that no memory should be kept for

Re: [PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-25 Thread Joost Koehoorn
On 25 June 2013 17:07, Nikita Popov wrote:  > No opinion on leaving off $e, but I'm against the generic catch{} statement.  I second the concerns about empty catch{}.  --  Regards,  Mike As most of you seem to discard the idea about and empty catch (I can see why, no problems), maybe it's best

Re: [PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-25 Thread Michael Wallner
On 25 June 2013 17:07, Nikita Popov wrote: > No opinion on leaving off $e, but I'm against the generic catch{} statement. I second the concerns about empty catch{}. -- Regards, Mike -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-25 Thread Nikita Popov
On Tue, Jun 25, 2013 at 12:54 AM, Joost Koehoorn wrote: > Hi all, > > I just published an RFC that proposes to add catch-statement without > needing to specify a variable, and support for fully anonymous catches. > > Details can be found at: > > https://wiki.php.net/rfc/anonymous_catch > No opini

Re: [PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-25 Thread Florin Patan
On Tue, Jun 25, 2013 at 12:54 AM, Joost Koehoorn wrote: > Hi all, > > I just published an RFC that proposes to add catch-statement without needing > to specify a variable, and support for fully anonymous catches. > > Details can be found at: > > https://wiki.php.net/rfc/anonymous_catch > > Regard

Re: [PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-24 Thread Anthony Ferrara
Joost, First off, let me say welcome and thanks for the contribution! I have a couple of questions around the intended proposal. 1. How do you plan on handling the case where there are multiple catch blocks? try { code(); } catch { doSomething(); } catch { do

[PHP-DEV] Announcing RFC 'Anonymous Catches'

2013-06-24 Thread Joost Koehoorn
Hi all, I just published an RFC that proposes to add catch-statement without needing to specify a variable, and support for fully anonymous catches. Details can be found at: https://wiki.php.net/rfc/anonymous_catch Regards, Joost Koehoorn -- PHP Internals - PHP Runtime Development Mailing Li