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


当前回答

// This should fix something that should never happen

其他回答

我经常看到这种情况:

// TODO make this work

消毒:

//Forward declarations:

class X {}; // TODO: Remove {}  ! When we get X defined....

在SJ CA拍卖业务的早期,我曾与一个名叫Rick Dorin的人合作过。他写编译器的时候,你必须整天拨弄卡片。他的错误信息之一是

错误太多……让更少的!

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