I'm trying to do something like the following, and the compiler is not happy...
def foo(db: Database = ctx.defaultDB)(implicit ctx: Context)
That is, if db isn't specified, use ctx to look up the default. The compiler didn't like this version so I tried this:
def foo(ctx: Context, db: Database = ctx.defaultDB)
Compiler didn't like that either...