如果您根本不想使用注释,怎么办?
正如没有哪条规则告诉你代码里的注释一定要怎么写才正确,也不存在“正确”属性的一个普适的列表。
Just as there are no rules that tell you exactly what comments to write in your code, there is no universal list of the "right" attributes.
您认为向xsl:out put添加一个属性(例如xalan:debug)怎么样,该属性将使所有调用向产生的树中发出一条注释?
What do you think about adding a attribute to XSL: output, such as xalan: debug which would cause all invocations to emit a comment into the resulting tree?
如果作者在写注释时都没花心思,怎么能指望读者从中获益呢?
If authors aren't paying attention when comments are written (or pasted), why should readers be expected to profit from them?
XML注释——你怎么评论显式实现的接口是否正确?
XML Comments — How do you comment explicitly implemented interfaces properly?
通常来说,优秀的编码风格意味着,你要放进去的注释,在帮助代码阅读者,理解代码内部,是怎么工作的。
In general, good programming style says you put in comments that are going to be valuable in helping you as a reader understand what's going on inside of the code.
通常来说,优秀的编码风格意味着,你要放进去的注释,在帮助代码阅读者,理解代码内部,是怎么工作的。
In general, good programming style says you put in comments that are going to be valuable in helping you as a reader understand what's going on inside of the code.
应用推荐