On Thu, Jul 19, 2012 at 12:03 PM, Charlie Somerville <
[email protected]> wrote:
> This has code readability problem written all over it. When maintaining it
> also has problems, like with the bracket-less if's.
> You would need to add brackets if you add an extra line here, as well as
> you might get unexpected behaviour of you forget to
> add brackets in that case.
>
> I've often heard people make this argument, but I've never found it to be
> a real concern in practise.
>
> Is this really such a common problem?
>
I have seen this problem happen, people losing time trying to figure out
what is wrong only to find
its a missing bracket.
As Paul said, this is bug-prone.
--
Rafael Dohms
PHP Evangelist and Community Leader
http://www.rafaeldohms.com.br
http://www.phpsp.org.br