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


当前回答

//我知道这很让人困惑,所以让我解释给你听。

其他回答

事实上,有一天我在一些代码上看到了这个,这些代码是在截止日期很急的时候写的。

//This was clearly written under duress
// StupidCompilerDontInline(SCDI), in the test project where
// allcode was in a single cpp the compiler had inlined nearly
// everything which lead to nice stackoverflow.
// To prevent this the metods are made virtual
#define SCDI virtual
// Catching exceptions is for communists

来自Mike Duncan在SQLite上的页面。

// need a coffee to fix this.

一个奇怪而恰当的有趣错别字:

断言(0);//永远不要在这一点上犯错