你遇到过的源代码中最好的注释是什么?


当前回答

我刚刚在一些遗留代码中发现了这个..

'CANNOT JUST QUIT!

其他回答

消毒:

//Forward declarations:

class X {}; // TODO: Remove {}  ! When we get X defined....

我曾经在一个用Paradox 3.5 -编写的大型预算系统工作多年后接到一个客户的电话

“我们在调试中遇到了一些注释”-

// This shouldn't happen, if it does, then the bits that automagically 
// worked when I wrote it have stopped working

... !

Repeat
    ...
Until (JesusChristsReturn) ' Not sure

这是我最喜欢的评论。

/// I intend to do this as shittily as possible because there are many better products that will totally blow this out of the water
/// and we don't have them so whatever

在后面的文件中,我们有更多的乐趣

/// sidestep a bug in WCF (that we can't send types across)
/// or, depending on how you look at, this issue is a Feature

稍后再讲

if( where == null)//be nice
// Bad Christian, No cookie

这里的Cookie不是指浏览器Cookie