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


当前回答

// Caveat implementor

其他回答

在js代码中:

// hack for ie browser (assuming that ie is a browser)

一段时间前我在一个PHP CMS中添加的注释。

if (/*you*/ $_GET['action']) { //celebrate
Get This hack!

在一行汇编代码中,在几页未注释的代码之后。

options.BatchSize = 300; //Madness? THIS IS SPARTA!
//  Hey, your shoe's untied!

后面跟着一些可疑的代码,在这些代码中,

//  Keep looking!  I think it was the other shoe!

最后,

//  How strange -- I must be seeing things.  Anyhow, I'm going to go take a shower, now...