Open Zamiell opened 7 years ago
Both are allowed.
As for length, I'm not sure if we ignore line length for comments in the config or not, but I'd say both "use whatever makes the most sense to you", and also "if lots of comments are required, rearchitect the code so fewer are needed".
Can this information actually be added to the style guide?
A PR that adds it would be appreciated!
Both type of comment are same
. As per setuation to write it to discribe the code.
Thanks for the excellent style guide!
One thing that is not explicitly defined by the guide is inline comments. Can a section on this topic be added to the "Comments" section block, please?
For example,
Is this a legal line in the airbnb style?
And the follow-up question: if it is not legal, then I assume that the correct fix to have it be moved above, like this?
Yet another follow-up question: if inline comments are legal, then what is the correct fix for in-line comments that make the line extend past 100 character? Like the following:
If it were moved above, it would overlap with the block comment header. So then does it make the most sense to move them down to the next line, like this?