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


当前回答

// Caveat implementor

其他回答

v.bpc     := v.pc;  -- Remember to jump back
v.baccu   := accu;  -- Yo dawg, heard you like runing instructions
                    -- so I took backup of your accu so you can run
                    -- instructions while you run instructions.
v.flags.i := false; -- No more interupts
Get This hack!

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

在OLTP数据库事务的主要触发代码中找到:

-- This line negates the @inverseqty, which is the
-- negative of the @insertedquantity.  This works through the
-- magic of the trigger.  In fact, this code is a lot like
-- the bermuda triangle!
@negquantity = -1 * @inverseqty

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

// sometimes I believe compiler ignores all my comments