As far as I am aware, this is not currently possible. You cannot dispatch on keyword arguments in general.
One workaround, off the top of my head, if you don’t mind using positional arguments for funA
and funB
:
funA(a=2.0) = a
funA(::Nothing) = funA()
funB(b=4.0) = b
funB(::Nothing) = funB()
useAB(; a=nothing, b=nothing) = funA(a) + funB(b)