Scala package
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?
Scala package
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?
The difference is that with
package a
package b
everything from package a
is in scope, not just from a.b
.