This topic created in 4414 days ago, the information mentioned may be changed or developed.
遇到获取类似列表的数据时,大家命名的时候使用复数形式多呢?还是用list的多呢?
例如:getStudents 还是 getStudentList?
7 replies • 2014-10-26 16:39:09 +08:00
 |
|
array用复数 list用list (java
|
 |
|
第二个语义更明确吧,Google 搜一下有不少同名接口
|
 |
|
有的词复数不是直接加s,这种用List更好
|
 |
|
统一规范了就好,别两种混用。
|
 |
|
这个也是一个值得纠结的问题啊。。。 例如这样 ul.item-lists > li.item-list 蛋疼无比
|
 |
|
x:xs
|