You must have noticed the word "module" when you define an object in scala REPL.
http://www.artima.com/pins1ed/modular-programming-using-objects.html
If you are curious to know why that object is being called a module then read this:scala> object Foo{| }defined module Foo
http://www.artima.com/pins1ed/modular-programming-using-objects.html
No comments:
Post a Comment