Quote:Original post by Ahnfelt
So is Basic's statement-continuation (_), but it's less verbose. As for ambiguity - for compilers it's just a matter of a well designed grammar. For us, line breaks are much more visible than a single character. On the 4 spaces / tab side, I wonder how much anger it would generate if the language only allowed one kind of indentation (for example, fixed four spaces).
And visibility should have little to do with the token structure. Even the One True Brace argument has been rendered moot by modern IDEs that will format the tokens to your own personal format.
Quote:
I agree, but the usual C implementation of curly braces and semicolons is lacking in that respect. Like the clicheOne nice thing about if ... end is that there is only one reasonable code style. With curly braces there are dozens of opinions on how to style, which is just an unnecessary hassle when reading other people's code. Languages shouldn't give you freedom where choice is useless.if(command == FIRE) breakTruce(); fireMissiles();
IMO the optional bracing is one of the failings of c/c++. Required Braces is better and (imo) more distinct from keywords/identifiers than 'end' style terminators. Which imo is beneficial.
Oh, and for the record I hate C++.