Re: Make try/catch brackets optinal
| From: | Florian Anderiasch | Date: | Fri, 20 Jul 2012 11:17:29 +0000 |
| Subject: | Re: Make try/catch brackets optinal | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61556@lists.php.net to get a copy of this message | ||
On 07/20/2012 11:37 AM, Ivan P @ Hoa wrote:
> On 20/07/12 11:28, Lester Caine wrote:
>> Ivan Enderlin @ Hoa wrote:
>>> Finally, I would like to clarify my proposal: I just wanted to
>>> discuss about
>>> making try/catch braces optional and not criticize PHP syntax…
I don't see how making something worse because of consistency has any
real benefit besides attacking a perceived problem of inconsistency.
This might be me (quick poll on developers with sample size: 1), but in
all the years of doing PHP/Java/x I hadn't even thought once of trying
to use try/catch without braces. I can't even remember using if without
braces.
Greetings,
Florian