"// ..." comments at end of code block after } - good or bad?
- by gablin
I've often seen such comments be used:
function foo() {
...
} // foo
while (...) {
...
} // while
if (...) {
...
} // if
and sometimes even as far as
if (condition) {
...
} // if (condition)
I've never understood this practice and thus never applied it. If your code is so long that you need to know what this ending } is then…