Re: Make try/catch brackets optinal
| From: | Ivan Enderlin @ Hoa | Date: | Fri, 20 Jul 2012 09:37:42 +0000 |
| Subject: | Re: Make try/catch brackets optinal | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61550@lists.php.net to get a copy of this message | ||
On 20/07/12 11:28, Lester Caine wrote:
Ivan Enderlin @ Hoa wrote:I very well understand that spreading optional brackets to the entire langage is not a good idea. I have never mentioned this possibility. Cheers. -- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/Finally, I would like to clarify my proposal: I just wanted to discuss about making try/catch braces optional and not criticize PHP syntax…The problem here is rather, could we make brackets compulsory everywhere? No because of BC problems, but this might be the preferred approach by many. So adding another possible bug creating area does not seem appropriate? Not everywhere :-). All I have pointed out here is adding consistency to control structures, because they are the only language constructions impacted by optional brackets.