Another tour of Scala

 
 
 
 

Package Objects

Viewing old version 1f931e93e9c43fe2d56a65714a2c6096ff44991f; View Current

The Gist

This isn’t covered by the tour.

My Interpretation

In Scala pre-2.8, a package object could contain only classes and objects. This is essentially how Scala treats Java’s package concept. In 2.8, a package object can contain type aliases and methods as well. Why is this significant?

My Thoughts on This Feature

TBD


Last Updated 07/16/2010 at 03:08:32 PM by davec

blog comments powered by Disqus