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


当前回答

// All this code is yours, except gedit()...attempt no modifications there.

其他回答

/*

 ____________________
/                    \
| Jean-Michel Bechet |
| 2002-2009          |
\___  _______________/
    |/
 (o_
 //\
 V_/_


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

Dennis M Ritchie在这里有一个关于一些古老UNIX注释的页面

来自c#中的单元测试类:

#region quis custodiet ipsos custodes?

[Fact]
public void TestPositive()
{
    Assert.Equal(4, 2 + 2);
}

[Fact]
public void TestNegative()
{
    Assert.Equal(5, 2 + 2);
}

#endregion

这是在PHP代码中找到的

$s=2; // chicken and bacon wrap for lunch

多么有用,幸运的是$s是不言自明的