I realize that this rule might differ from one company's coding standards to another, but in general, which is preferred?
With a space after the line-comment:
int foo = Bar(quux + 1); // compensate for quux being off by 1 foo = Bar(quux + 1) # compensate for quux being off by 1No space after the line comment:
int foo = Bar(quux + 1); //compensate for quux being off by 1 foo = Bar(quux + 1) #compensate for quux being off by 1
I haven't been able to find anything online regarding this aspect of coding style. My guess is that including a space is the preferred style for all languages, but I'd like some "hard evidence" to confirm or deny this.
It sounds so far like everyone has anecdotal evidence that using a space is preferred. Can anyone point me in the direction of some official or otherwise published coding standards that directly address the issue of comment formatting and whether a space should be used?