Naming case classes in Scala.

Posted by Lukasz Lew on Stack Overflow See other posts from Stack Overflow or by Lukasz Lew
Published on 2010-05-08T22:03:48Z Indexed on 2010/05/08 22:08 UTC
Read the original article Hit count: 198

I tend to have this redundant naming in case classes:

abstract class MyTree
case class MyTreeNode (...)
case class MyTreeLeaf (...)

Isn't it possible to define Node and Leaf inside of MyTree? What are best practices here?

© Stack Overflow or respective owner

Related posts about scala

Related posts about scala-2.8