# Named parameters with type overloads

**URL:** <https://discourse.julialang.org/t/named-parameters-with-type-overloads/18860>\
**Category:** General Usage\
**Created:** [December 20, 2018, 5:41pm UTC](https://discourse.julialang.org/t/named-parameters-with-type-overloads/18860 "2018-12-20T17:41:01Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [February 29, 2024, 9:29am UTC](https://discourse.julialang.org/t/named-parameters-with-type-overloads/18860/27 "2024-02-29T09:29:52Z")

</div>

> [@govorunov](#):
>
> Sorry for digging this up

Start a new topic instead next time. Link and quote the comments in an inactive thread you’re replying to. It is more polite to the previous participants and saves the admins the trouble of splitting the topic for you.

> [@govorunov](#):
>
> When calling a method there is an option to supply some or all positional arguments by names.

> [@govorunov](#):
>
> Mos other languages have ‘passing arguments by name’ feature. See no point why Julia can’t. Probably the very reason why Julia struggles to gain traction even though it is such an elegant language. Being proud and unique doesn’t really work that well

Most other languages don’t have multimethods, and that’s the [exact reason](https://discourse.julialang.org/t/naming-positional-arguments-at-call-site/103526/118?page=6) why methods are dispatched on positional arguments. Trying to mix it up makes multimethods an unfeasible nightmare to write, so it’s only a feasible feature for single-method functions.

> [@govorunov](#):
>
> But again, with the proposed design I see not a single breaking change.

> [@govorunov](#):
>
> When calling a method require the use of semicolon ‘;’ IF a method call references positional arguments by their names.

You’d change this behavior:

```julia
julia> foo(a, b) = 1
foo (generic function with 1 method)

julia> foo(;a, b) = 2
foo (generic function with 2 methods)

julia> foo(b = 1, a = 1;)
2

```

---

_[View the full topic](https://discourse.julialang.org/t/named-parameters-with-type-overloads/18860)._
