实际上,我已经使用多条生产线多年了,从来没有遇到过任何严重的问题。我不再是它的忠实粉丝,因为你会得到://
/*...*/
/* I'm commenting out all this code for a moment
...
/* And here is a multi line comment
that was hidden in the middle */
...
*/
感谢编译器,它感到不安并告诉我问题。
其中:
...
// And here is a multi line comment
// that was hidden in the middle
...
变为单个宏:
// ...
// // And here is a multi line comment
// // that was hidden in the middle
// ...
并愉快地反转另一个宏,将其返回到原始形式
至于:
// but now you have
// trouble edditing
// your comments so
// that every line
// is of equal size
我说:
// Tough, this is a piece of code not a
// published novel
// and if varying lengths
// make
// it hard for you to read then heaven
// forbid how you handle the code
你不是讨厌edditing吗:
/******************************************************************
* Program: Foo.java *
******************************************************************
* Author: Codey Art Work *
* Purpose: To do something with something and get something not *
* forgetting something else. *
******************************************************************
* Revision History: *
******************************************************************
* Date | Author | *
*--------|--------|----------------------------------------------*
* 1/2/09 | Jack | Now I have to keep all my comments in this *
* | | tiny little space and if I edit it I just go *
* | | aaarrrrrrggggggggggghhhhhhhhhhh!!!!!!!!!!!!! *
******************************************************************/
这似乎总是出现在坚持超过的地方/* */
//
我只想对Stack Overflow的家伙们说,这真的很酷的编辑器。执行代码示例非常简单。