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


当前回答

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

其他回答

double t = 0.0; /* that's generally my opinion of the diner, too. */
(A bunch of code that's really weird looking)  //Kludge.

消毒:

//Forward declarations:

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


//take sh!t


//close lid

文件打开,数据转储,文件关闭…

在给一个朋友看了这篇来自《Coding Horror》的文章几个小时后,我看到了他对代码的评论:

// valdez先生是一个暴力的精神病患者。别惹他生气。