Java 中包名中的下划线 - 是不是很糟糕?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22145590/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 13:54:21  来源:igfitidea点击:

Underscore in package name in Java - is it bad?

javanaming-conventionsjava-package

提问by Leonid Semyonov

Sorry for my English

对不起我的英语不好

I think that sometimes it is necessary.

我认为有时这是必要的。

In my opinion search_result_list, location_providerare easier to read than searchresultlist, locationprovider.

在我看来search_result_listlocation_providersearchresultlist,更容易阅读locationprovider

What does the documentation say?

文档是怎么说的?

采纳答案by PrR3

Code Conventions could be found here!

代码约定可以在这里找到!

I think code conventions are nothing to vary, so stick to such conventions if there exist any...

我认为代码约定没有什么可改变的,所以如果存在的话,请坚持这样的约定......