|
Re: What's New in Scala 2.8: Chained Package Clauses
|
Posted: Sep 8, 2010 4:57 AM
|
|
First of all, it's good to have such a clear and systematic explanation of packages in Scala 2.8. It seems to be a really confusion topic, e.g. I answered already two questions about this on StackOverflow (and now I added the link to the article).
Second, I like the way it works now: You have the choice what you want to see. I think this helps to use an interconnected group of packages as a kind of module or "superpackage" (together with the possibility to specify package dependent visibility for modifiers).
I have one open question about packages in Scala: They are conceptually very similar to objects (especially after introducing package objects that allow to add independent "stuff" to them). So shouldn't we try to "unify" objects and packages in one or another way? If this is *no* good idea, I'd like to hear the reason, as I have somethime trouble to decide if I should use objects or packages to structure my code.
|
|