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


当前回答

//这将为我们每个用户节省0.5秒,并取悦机器精神。

在很长的程序之前:)

其他回答

aComment = 'this is not aComment' # this is aComment
class T(object):
    def f(this):
        this is not aComment

今天刚加了这个:

// Hardcoded this for time sake ... will make andrew fix later :)

我想我有过这样的经历:


if (case1) { // trivial
...
}
else { // we are screwed
 /* fill in later */
}

好吧,我可能用了一个比搞砸更强烈的词

//FIXME: fix this before the 1.0 release

他们在第4版

catch (Domain.ConcurrencyException)
{
    // somebody changed it between the time we loaded it and now.
    // weird, huh?
}