你遇到过的源代码中最好的注释是什么?
当前回答
# dont question, i just felt like throwing some globals in
# this is actually quite pointless as youll soon see
稍后在代码中
#draw the circles (complicated)...dont question
更晚…
# complicated process of drawing the circles in a
# somewhat symmetrical, 3-d pattern
# dont question again
甚至以后……
# will determine if user clicks on die
# i determined these values...dont worry about them
其他回答
不是一个评论,而是一个goto标签
ICantBelieveImUsingAGoto:
从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). */
// Added because boss changed his mind : 20020111,20020501,20020820, ...
// Commented out because boss changed his mind : 20020201,20020614,20020908, ...
在ETL脚本之间的主要黑客RPG数据库和SQL Server一个。我大概有10到20次这样的评论……
// Caveat implementor
我想我有过这样的经历:
if (case1) { // trivial
...
}
else { // we are screwed
/* fill in later */
}
好吧,我可能用了一个比搞砸更强烈的词