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


当前回答

简单但有效的注释,在一些不太安全的c++代码之前

// yikes

其他回答

class Act //That's me!!!
{

}

从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). */
using namespace std;            // So sue me

我只是发表了这样的评论:

// this control (Resistance) is FUTILE! 
$this->getSelect()->where ('main_table.product_id = -1'); // Mom, Dad... sorry