10000 Use upper camel case for constants by oschrenk · Pull Request #257 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content

Use upper camel case for constants #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use upper camel case for constants
  • Loading branch information
oschrenk committed Oct 1, 2013
commit 536101d646faa01f1c55a999a995781b2f74da5a
9 changes: 6 additions & 3 deletions style/naming-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,13 @@ advanced feature in Scala, to be used only by those most well-versed in
its pitfalls. Without care, excessive use of symbolic method names can
easily transform even the simplest code into symbolic soup.

## Values, Variable and Methods
## Constants, Values, Variable and Methods

Method, Value and variable names should be in camelCase with the first
letter lower-case:
Constant names should be in upper camel case:

val MyConstant = ...

Method, Value and variable names should be in lower camel case:

val myValue = ...
def myMethod = ...
Expand Down
0