# I'm confused about methods

**URL:** <https://discourse.julialang.org/t/im-confused-about-methods/48508>\
**Category:** General Usage\
**Created:** [October 16, 2020, 6:42pm UTC](https://discourse.julialang.org/t/im-confused-about-methods/48508 "2020-10-16T18:42:06Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![klaff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/klaff/32/7637_2.png) [@klaff](https://discourse.julialang.org/u/klaff)\
**Post date:** [October 16, 2020, 9:56pm UTC](https://discourse.julialang.org/t/im-confused-about-methods/48508/21 "2020-10-16T21:56:44Z")

</div>

I’m sorry but I don’t know what you are referring to as the “current behavior”.

My understanding at this point is:

If it was intended that we could separately define `f()` and `f(;a)` then it wouldn’t matter what order they were defined in and they should both show up in the output of `methods(f)`.

If it is intended that we cannot define both `f()` and `f(;a)`, then the last one defined should make the other unreachable in all cases, and `methods(f)` should show the appropriate one.

I think the latter is the intent of the language designers (but I could be wrong), and I think there is a bug either way.

---

<div class="post-metadata">

**Author:** ![klaff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/klaff/32/7637_2.png) [@klaff](https://discourse.julialang.org/u/klaff)\
**Post date:** [October 16, 2020, 11:05pm UTC](https://discourse.julialang.org/t/im-confused-about-methods/48508/22 "2020-10-16T23:05:42Z")

</div>

[https://github.com/JuliaLang/julia/issues/9498#issuecomment-504363878](https://github.com/JuliaLang/julia/issues/9498#issuecomment-504363878)

[Previous page](https://discourse.julialang.org/t/im-confused-about-methods/48508.md?page=1)
