Abhijit Sarkar Abhijit Sarkar - 2 years ago 179
Scala Question

Scala package style difference


is cumulative, so
package a.b
can also be written as

package a
package b

Is there any difference between these or is it just a matter of programming style?

Answer Source

The difference is that with

package a
package b

everything from package a is in scope, not just from a.b.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download