3 ms·
Scala’s implicits are something like that (though not for local variables). You can create a method signature like `listEntities(implicit connection: DBConnecti
by kaba0 4y ago
Scala’s implicits are something like that (though not for local variables). You can create a method signature like `listEntities(implicit connection: DBConnection)` and at call site if you have a DBConnection typed object in scope (and exactly one so it is obvious) it will be inserted automatically.