Have a recurring situation, petty I know, but I'd like to consolidate the following:
import com.company.model.FooDAO
import com.company.model.FooForm._
into something like:
import com.company.model.{FooDAO, FooForm._}
the above 1-liner does not compile, however.
The best I've managed is:
import com.company.model.FooDAO, com.company.model.FooForm._
Scala being Scala, I assume the compact form above is possible...
You can write this:
import com.company.model.{FooDAO, FooForm}, FooForm._
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With