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


当前回答

//Abandon all hope ye who enter beyond this point

其他回答

/*
    FIXME:  why the fuck did anyone ever think this kind of expensive iteration
                    was a good idea?

这是我自己代码中的一个,但它仍然非常有趣,我认为最好还是把它放在网上,因为它是在公共SVN中。

// These were orginally up and down. When it was clear the names were
// inapplicable, they were renamed to retain the joke.
// Sorry if you were hoping for useful variable names.
quantum strange, charm;
try {

} finally { // should never happen 

}

在1983年的COBOL中见过:

   C   I don't know what this next bit does so I'll jump around it
       GOTO DONE.

我想我有过这样的经历:


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

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