in reply to Re: No braces
in thread No braces
Being Lazy, I prefer the C syntax.which only saves you a single character; unlike in C the semicolon in Perl separates statements, while in C it terminates statements. So, in C you write:
in Perl you write:if (COND) STATEMENT;
if (COND) {STATEMENT}
Will Perl6 give us back the C syntax?Extremely unlikely, considering the promotion blocks have made in perl6, and the fact parenthesis around the condition will be optional. In perl6, you can write:
which is one character less than the equivalent C syntax. (Well, this isn't quite true if you look at white space as well).if COND {STATEMENT}
Abigail
|
|---|