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


当前回答

不是注释,而是属性

[ThereBeDragons]

还有一个是我在IHttpHandler的实现中看到的

//What is this?
public bool IsReusable
{
    get{return false;}
}

其他回答

// (c) 2000 Applied Magic, Inc.
// Unauthorized use punishable by torture, mutilation, and vivisection.

啊,我一直很喜欢这个……

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

我曾经见过这个:

//this used to be a comment

Dennis M Ritchie在这里有一个关于一些古老UNIX注释的页面

// HACK ! COPY/PASTE this and look for another job