in reply to Re: Re: No braces
in thread No braces
$x = (y == z) ? (a == c) ? foo (a,c) : bar (y,c) : (a == b) ? baz (a,y) : zap (y,y);
Identation helps, but there are still cases when a nested if-comb can be more readable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: No braces
by hardburn (Abbot) on Feb 11, 2004 at 14:42 UTC | |
by flyingmoose (Priest) on Feb 11, 2004 at 15:03 UTC | |
by hardburn (Abbot) on Feb 11, 2004 at 15:26 UTC | |
by TimToady (Parson) on Feb 12, 2004 at 17:12 UTC | |
by Abigail-II (Bishop) on Feb 11, 2004 at 15:57 UTC | |
by hardburn (Abbot) on Feb 11, 2004 at 16:26 UTC | |
| |
by metadoktor (Hermit) on Feb 11, 2004 at 18:58 UTC | |
by flyingmoose (Priest) on Feb 11, 2004 at 19:20 UTC |