你遇到过的源代码中最好的注释是什么?
当前回答
/* This is O(scary), but seems quick enough in practice. */
后面是四个嵌套的for循环
其他回答
顶部的:靠近单位顶部的:
// Oh what a tangled web we weave
// When first we practice to deceive
// ASTA
这是在PHP代码中找到的
$s=2; // chicken and bacon wrap for lunch
多么有用,幸运的是$s是不言自明的
Exception up = new Exception("Something is really wrong.");
throw up; //ha ha
// A Gorgon class - For the love of Zeus don't look directly at it!
try {
doSomething();
} catch(err) {
// Die quietly
alert(err);
}