Reputation: 9263
Unlike Java, Scala supports putting multiple classes in one file. Since Scala's classes are often quite short (think case classes), this often seems to make sense.
What is considered the proper style and idiom to do this, on production code? Under what circumstances should short or associated classes be put in the same file? How should that file be named?
Upvotes: 4
Views: 2151
Reputation: 2631
This is all covered in Scala style guide
Summary :
Upvotes: 7