# Splitting kwargs into specific keyword arguments?

**URL:** <https://discourse.julialang.org/t/splitting-kwargs-into-specific-keyword-arguments/90131>\
**Category:** General Usage\
**Created:** [November 11, 2022, 5:11pm UTC](https://discourse.julialang.org/t/splitting-kwargs-into-specific-keyword-arguments/90131 "2022-11-11T17:11:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bgroenks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bgroenks/32/21784_2.png) [@bgroenks](https://discourse.julialang.org/u/bgroenks)\
**Post date:** [November 11, 2022, 8:20pm UTC](https://discourse.julialang.org/t/splitting-kwargs-into-specific-keyword-arguments/90131/2 "2022-11-11T20:20:25Z")

</div>

As far as I am aware, this is not currently possible. You [cannot dispatch on keyword arguments](https://discourse.julialang.org/t/how-can-kwargs-be-used-in-multiple-dispatch/86790/3) in general.

One workaround, off the top of my head, if you don’t mind using positional arguments for `funA` and `funB`:

```julia
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)

```

---

_[View the full topic](https://discourse.julialang.org/t/splitting-kwargs-into-specific-keyword-arguments/90131)._
