Re: [PHP-DEV] Re: Make try/catch brackets optinal

2012-07-20 Thread Stas Malyshev
Hi! >> I've run into problems with brace-less blocks many, many times over >> the years. Clearly, enough other people have as well that any serious >> coding standard includes a clause requiring that all blocks use >> braces. I see no reason to add another context in which braces could >> be omitt

Re: [PHP-DEV] Re: Make try/catch brackets optinal

2012-07-20 Thread Lester Caine
Matthew Weier O'Phinney wrote: I've run into problems with brace-less blocks many, many times over the years. Clearly, enough other people have as well that any serious coding standard includes a clause requiring that all blocks use braces. I see no reason to add another context in which braces c

[PHP-DEV] Re: Make try/catch brackets optinal

2012-07-20 Thread Matthew Weier O'Phinney
On 2012-07-19, "Ivan Enderlin @ Hoa" wrote: > As you certainly know, brackets defining blocks in PHP are optional if > blocks contain a single instruction. Thus: > > if($condition) { > echo 'foobar'; > } > > is strictly equivalent to: > > if($condition) > echo 'foobar'; > > But this syntactic sug