Setting package in Scala REPL
Is there a way in the Scala REPL to set the "active" package scope ? Say I have a package com.package with class A , I want to be able to type new A() instead of new com.package.A() without explicitly doing import com.package.A . There might be a number of other classes in that package I'm interested into and I don't want to polute my REPL's global namespace by doing import com.package._ . Even better, I'd like to define class A without typing its fully qualified name. Something like: package com.package // do this once class A class B val a = new A() val b = new B() I'm aware of the :paste