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


当前回答

//Dave chapelle reports errors.
function reporterror() {
  davechapelle.trace("FUCK!");
}

其他回答

catch (Exception ex)
{ 
    // just die already.
}
// this error could never happen

然后,客户打电话说他看到一条错误消息说"这个错误永远不会发生"

#pragma region Crap that is kept for temporary reasons

    //  Huge chunk of commented code

#pragma endregion

当我注释掉我认为不再有用的代码块,但我可能是错的(因此没有删除它们),我有时会在它们之前

// Wilted celery?

这个想法就像芹菜一样枯萎了,但你还是把它放回冰箱里。我只知道十年后会有人看到这些评论,说什么鬼?

//marco 2007.1.23
//I didn't do it