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


当前回答

stop(); // Hammertime!

其他回答

大概30页的xslt的中间部分

<!-- Here be dragons  -->

不是注释,而是属性

[ThereBeDragons]

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

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

} finally { // should never happen 

}

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

A:很简单——就是那个帮我解决了我当时遇到的任何问题的人,而且有很多这样的人!

其次是那些帮助指导新开发避免已知陷阱的方法。

//Not a bug, parameter position can change..., if you think this is wrong, you are in fact wrong.