Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: "Jon" <jomar@xxxxxxxxxxxxx>
- Date: Thu, 14 Oct 2010 01:21:55 -0500
Felix Palmen wrote:
* Jon <jomar@xxxxxxxxxxxxx>:
Felix Palmen wrote:
* Ian Collins <ian-news@xxxxxxxxxxx>:
Maybe "at the point of first use (which happens to be the point of
initialisation)" would have been clearer?
Which would be -- in the general case of first using them somewhere
in the middle of a scope block -- illegal in C89.
In fact, I like this C89 restriction.
What about loop vars? Same thing?
for (int i = 0; i < 100; i++)
// blah with i
Isn't that effectively the same as "in the middle of a scope"?
No,
OK.
a loop is its own scope
Hello, duh.
where the block delimeters /can/ be
omitted for a single-statement body
Advanced topics in language implementation and compiler design then, yes?
(but this is often discouraged in
coding conventions).
"they" are wrong and *I* am right on this one (it's worth it):
if(you_suck)
{
do_unnecessary_parenthetic_eww_parents_suck();
}
if (i_rock)
kiss_me_kate();
/*----------
Nuff said?
------ (now about this ugly comnent syntax...)
*/
.
- References:
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: James Dow Allen
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: Ian Collins
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: Ben Bacarisse
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: Ian Collins
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: Felix Palmen
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: Jon
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- From: Felix Palmen
- Re: If you could change the C or C++ or Java syntax, what would you like different?
- Prev by Date: Re: struct by value
- Next by Date: Re: endianness and failure with inline
- Previous by thread: Re: If you could change the C or C++ or Java syntax, what would you like different?
- Next by thread: Re: If you could change the C or C++ or Java syntax, what would you like different?
- Index(es):
Relevant Pages
|