我对驼峰命名法有疑问。假设你有这个缩写:Unesco = 联合国教科文组织。
你应该写成:unitedNationsEducationalScientificAndCulturalOrganization
但是如果你需要写这个缩写怎么办?就像:
getUnescoProperties();
用这种方式书写是否正确?getUnescoProperties()
OR getUNESCOProperties();
这样写是否正确?getUnescoProperties()
或getUNESCOProperties();
get_unesco_properties
还是get_u_n_e_s_c_o_properties
? - jchook