3 ms·
As far as regular comments go, this is probably true. But then, comments serve more than one purpose. Not all comments are there for those special edge cases.
by Derbasti 14y ago
As far as regular comments go, this is probably true. But then, comments serve more than one purpose. Not all comments are there for those special edge cases.
For example, what about docstrings? That is, comments that contain documentation that is supposed to be sufficient even if the code is not available? I daresay those should not be emphasized.
Or what about instructional code that is written to be read by people with less than perfect knowledge of the programming language or problem domain?
In the end, I think highlighting keywords like TODO, FIXME or NOTE in comments would be a better solution.