#odersky-programming-in-scala-2ed #p230 #scala

Scala has just two namespaces for definitions in place of Java’s four. Java’s four namespaces are fields, methods, types, and packages. By contrast, Scala’s two namespaces are:
  • values (fields, methods, packages, and singleton objects)
  • types (class and trait names)


Do you want to join discussion? Click here to log in or create user.