Demo entry 6729555

规格

   

Submitted by anonymous on Apr 03, 2018 at 05:24
Language: Java. Code size: 395 Bytes.

String unitAbbrev = "μs";                                 | 即使没有注释也非常清晰
String unitAbbrev = "\u03bcs"; // "μs"                    | 允许,但没有理由要这样做
String unitAbbrev = "\u03bcs"; // Greek letter mu, "s"    | 允许,但这样做显得笨拙还容易出错
String unitAbbrev = "\u03bcs";                            | 很糟读者根本看不出这是什么
 
return '\ufeff' + content; // byte order mark             | Good,对于非打印字符,使用转义,并在必要时写上注释

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).