scala's package shortcut

2010-08-31 comments | programming, scala

keep in mind, that these three examples express exactly the same.

sample 1

package a {
  package b {
    package c {
      object SomeTest { ... }
    }
  }
}

sample 2

package a
package b
package c

object SomeTest { ... }

sample 3

package a.b.c
import a._
import a.b._

object SomeTest { ... }

hth

blog comments powered by Disqus