in reply to Re: PBP: Code Layout
in thread PBP: Code Layout
And that's only the if statements! And some people use 4 spaces and some use 2. Of course, they become harder to read with more complex statements:if($this) { do_that(); # Pretend this is indented with a tab } if ( $this ) { do_that(); # another tab } if($this) { do_that(); } if($this) { do_that(); } if($this) { do_that(); } if($this) { do_that(); }
if($this) { do_that(); eval { do_something(); }; if($something_else) { here_we_go(); } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: PBP: Code Layout
by Skeeve (Parson) on Oct 19, 2005 at 22:43 UTC | |
by chromatic (Archbishop) on Oct 20, 2005 at 02:51 UTC | |
by adrianh (Chancellor) on Oct 20, 2005 at 08:38 UTC | |
by Skeeve (Parson) on Oct 20, 2005 at 05:56 UTC | |
by chromatic (Archbishop) on Oct 20, 2005 at 06:53 UTC | |
| |
by BrowserUk (Patriarch) on Oct 20, 2005 at 06:09 UTC | |
by chromatic (Archbishop) on Oct 20, 2005 at 06:57 UTC | |
Re^3: PBP: Code Layout
by herveus (Prior) on Oct 20, 2005 at 12:12 UTC |