update
This commit is contained in:
@@ -88,7 +88,7 @@ class HelloPaper : JavaPlugin() {
|
||||
/*
|
||||
* 为什么不要写成 "jar" == protocol
|
||||
* Yoda 表示法错在哪里
|
||||
* https://www.yinwang.org/blog-cn/2013/04/16/yoda-notation
|
||||
* https://www.yinwang.org/posts/yoda-notation
|
||||
* 另一层问题,以人的阅读习惯,应当左侧为变量,右侧为常量,比如"他是小明吗","他"是一个变量,"小明"是个常量,而"小明是他吗"就会很奇怪
|
||||
*/
|
||||
if (protocol == "jar") {
|
||||
|
||||
Reference in New Issue
Block a user