# Is multiple dispatch possible for an enumerated type?

**URL:** <https://discourse.julialang.org/t/is-multiple-dispatch-possible-for-an-enumerated-type/103420>\
**Category:** General Usage\
**Created:** [August 31, 2023, 6:48pm UTC](https://discourse.julialang.org/t/is-multiple-dispatch-possible-for-an-enumerated-type/103420 "2023-08-31T18:48:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [August 31, 2023, 7:49pm UTC](https://discourse.julialang.org/t/is-multiple-dispatch-possible-for-an-enumerated-type/103420/2 "2023-08-31T19:49:49Z")

</div>

Possible, but perhaps not desirable. See

> [@Dispatch on enum](https://discourse.julialang.org/t/dispatch-on-enum/77398):
>
> Hey all slight_smile Is it possible to dispatch a function on different enum instances. Something like this: julia\> @enum E a b julia\> f(::Type{a}) = :a julia\> f(::Type{b}) = :b julia\> f(a) :a

---

_[View the full topic](https://discourse.julialang.org/t/is-multiple-dispatch-possible-for-an-enumerated-type/103420)._
