A survey of programming language enum support

This page summarizes the projects mentioned and recommended in the original post on /r/programming

Sevalla - Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. enum-comparison

    A comparison of enumerations and similar features in different languages

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. Enumeratum

    A type-safe, reflection-free, powerful enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations.

    For Scala, check out the enumeratum library (https://github.com/lloydmeta/enumeratum). In my opinion its the best enum implementation I know of. It has all the features defined in the table, and the syntax is really clean. It even supports unique associated values (eg. unique String/Int keys).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • How to implement `if-else if -else if -else` with cat effect IO in Scala?

    1 project | /r/scala | 16 May 2023
  • Concise enumeration in Scala

    1 project | /r/scala | 16 Feb 2023
  • C++26: more constexpr in the core language

    7 projects | news.ycombinator.com | 23 Apr 2025
  • Make Invalid States Unrepresentable

    2 projects | dev.to | 2 Feb 2024
  • Engenharia de Dados com Scala: aprenda a fazer webscraping dos filmes mais assistidos da Netflix em cada país

    5 projects | dev.to | 27 Nov 2023