Scala part 4: Don’t miss these rules

Hi everyone,

Today, I write the last part of Scala seriese. It includes somethings basic about Scala coding rules from this site http://docs.scala-lang.org/style

Indentation

Indentation should follow the “2-space convention”. Thus, instead of indenting like this:

Line Wrapping

80 characters max per line

Method

Classes/Traits

Objects

Packages

Methods

Constants, Values, Variable and Methods

Special Note on Brevity

Declarations

Add a Comment

Your email address will not be published.