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
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
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