# Wanted: proper enum type and switch statement with pattern matching on enumerable types

**URL:** <https://discourse.julialang.org/t/wanted-proper-enum-type-and-switch-statement-with-pattern-matching-on-enumerable-types/85225>\
**Category:** Internals & Design\
**Tags:** enum\
**Created:** [August 3, 2022, 12:23pm UTC](https://discourse.julialang.org/t/wanted-proper-enum-type-and-switch-statement-with-pattern-matching-on-enumerable-types/85225 "2022-08-03T12:23:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [August 3, 2022, 12:29pm UTC](https://discourse.julialang.org/t/wanted-proper-enum-type-and-switch-statement-with-pattern-matching-on-enumerable-types/85225/2 "2022-08-03T12:29:42Z")

</div>

Ref: [ANN: EnumX.jl -- improved enums for Julia](https://discourse.julialang.org/t/ann-enumx-jl-improved-enums-for-julia/78096)

Agree that `switch` would be nice, and better than `if`/`elseif ` chains, both visually and for correctness.

---

_[View the full topic](https://discourse.julialang.org/t/wanted-proper-enum-type-and-switch-statement-with-pattern-matching-on-enumerable-types/85225)._
