IMHO if Signficant-whitespace is obligatory it will be great blow to different styles and methodologies.
I can sugest that scala 3 offers:
so, you can write something like(it is not tested):
object Context {
export scanUnit._
export printUnit._
}
class someClass{
import Context._
}
Nevertheless, I think, scope management is not the strongest side of scala 2 and scala 3.
1 Like