Hi!
>>>>> "Guilhem" == Guilhem Bichot <guilhem.bichot@stripped>
> writes:
<cut>
Guilhem> I have always interpreted those rules the following way: this is permitted:
Guilhem> /* blah */
Guilhem> int x; // blih
Guilhem> but this is fordidden:
Guilhem> // blah
Guilhem> int x; // blih
Guilhem> I cannot find a good reason for this forbidding, and I find that the
Guilhem> first form is less uniform than the second. I always need to remember
Guilhem> that if there's no non-comment word on the line I need to use /* */ .
The main reason for this was that over time most single linke comments
that are alone one the line become multi line comments and then its
better to just have one comment syntax for these so that one doesn't
have to change things when extending a comment.
Personally I also find it easier to read if one has only one comment
syntax:
/*
Comment line 1
Comment line 2
*/
code
/* comment */
code
/*
Comment line 1
Comment line 2
*/
Instead of mixing things:
/*
Comment line 1
Comment line 2
*/
code
// comment
code
/*
Comment line 1
Comment line 2
*/
Regards,
Monty