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


当前回答

//I'm sorry, but our princess is in another castle.

其他回答

// Hack-er-ama

我没有这个来源的副本,但我一直记得它:

//如果你想不明白,就不要读这篇文章

# Don use this. Never!

我刚刚完成了一个日志框架(使用Trace,为什么没有这样的存在我不知道)。我做了一个继承自TraceListener的方便基类。它覆盖了所有的TraceListener方法,并将它们路由到一个方法中——因此有很多文档注释:

// TODO: Need some codemonkey to doc comment this class.
#define SHIT_HAPPENED (BASE + 1)   /* generic shit happened */