![]() |
I, too, think that example A looks better then example B.
A: if (var == true) { .... } B: if (var) { .... } |
Quote:
|
Quote:
PHP Code:
|
Quote:
|
Me either. The spaces inside the ( brackets offend me too ;)
Heres how I do it: PHP Code:
|
Quote:
PHP Code:
|
PHP Code:
|
Quote:
|
Quote:
The fact is that it's clearer when I'm editing the script. |
That's not a fact it's entirely subjective :P
I think less lines is clearer. I think it's easier to see which statement a block belongs to when the opening bracket is on the same line. |
Quote:
|
PHP Code:
|
Quote:
Quote:
|
Quote:
|
Quote:
-- Less lines? Really. PHP Code:
|
All times are GMT +2. The time now is 03:34 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.