Re: Switch example in {} bracket page - change spaces..
| From: | Martin Jansen | Date: | Fri, 09 Apr 2004 09:06:27 +0000 |
| Subject: | Re: Switch example in {} bracket page - change spaces.. | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-3210@lists.php.net to get a copy of this message | ||
On Fri Apr 09, 2004 at 09:4710AM +0800, Alan Knowles wrote:
> Would anyone mind if I changed the switch statement on the control
> stuctures page: - it currently is there to illustrate the placement of
> {brackets} - however it also gives a poor example (IMHO) of indentation
> - we dont specify that case should be indented once from case - but it
> is a hell of alot clearer to read..
At least Emacs' PHP mode automatically sets indentation this way in
switch statements. (Eclipse iirc does the same for Java code.) Apart
from that this style has been in the coding standards since the very
beginning, and I guess that Jon (or whoever compiled the standards)
didn't do it by accident this way.
-1 on changing it.
--
- Martin Martin Jansen
http://martinjansen.com/