Friday, July 05, 2013

Scala Objects as Modules

You must have noticed the word "module" when you define an object in scala REPL.

scala> object Foo{
     | }
defined module Foo
If you are curious to know why that object is being called a module then read this:
http://www.artima.com/pins1ed/modular-programming-using-objects.html


No comments: