scala - Is it possible to automatically import other packages in the caller's namespace? -


if user imports:

com.my.package 

is possible me in package, package gets imported well? example, i'd have java.io automatically imported.

no, not possible. however, can create package object , put type definitions in it, you'll aliases classes think relevant.


Comments