in reply to No braces

Being Lazy, I prefer the C syntax. This is a rare instance of Perl forcing the programmer to do something in one particular way.

Will Perl6 give us back the C syntax?

------
This sentence is not true.

Replies are listed 'Best First'.
Re: No braces
by Abigail-II (Bishop) on Feb 11, 2004 at 11:34 UTC
    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:
    if (COND) STATEMENT;
    in Perl you write:
    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:
    if COND {STATEMENT}
    which is one character less than the equivalent C syntax. (Well, this isn't quite true if you look at white space as well).

    Abigail