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


当前回答

我最喜欢的评论是我的一个同性恋朋友说的。他喜欢用VB标记他所有的TODO注释。净,

'TODO: Matt Damon

有时会提供额外的信息,但通常不是这样。

其他回答

所有bug由David S. Miller添加

从Python / ceval.c:

/* This is gonna seem *real weird*, but if you put some other code between
   PyEval_EvalFrame() and PyEval_EvalCodeEx() you will need to adjust
   the test in the if statements in Misc/gdbinit (pystack and pystackv). */
options.BatchSize = 300; //Madness? THIS IS SPARTA!
// This code was written by a genius so don't try to understand it with
// your tiny little brain.

我经常看到这种情况:

// TODO make this work