Enumeratum

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

Enumeratum Alternatives

Similar projects and alternatives to Enumeratum

  1. refined

    Refinement types for Scala

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. Chimney

    Scala library for boilerplate-free, type-safe data transformations

  4. Scala Async

    An asynchronous programming facility for Scala

  5. Each

    A macro library that converts native imperative syntax to scalaz's monadic expressions (by ThoughtWorksInc)

  6. Shapeless

    Generic programming for Scala

  7. Stateless Future

    Asynchronous programming in fully featured Scala syntax.

  8. cats

    43 Enumeratum VS cats

    Lightweight, modular, and extensible library for functional programming.

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. Freasy Monad

    Easy way to create Free Monad using Scala macros with first-class Intellij support.

  11. Scapegoat

    Scala compiler plugin for static code analysis

  12. enum-comparison

    A comparison of enumerations and similar features in different languages

  13. Records for Scala

    Labeled records for Scala based on structural refinement types and macros.

  14. Scalaz

    4 Enumeratum VS Scalaz

    Principled Functional Programming in Scala

  15. scribe

    The fastest logging library in the world. Built from scratch in Scala and programmatically configurable. (by outr)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Enumeratum alternative or higher similarity.

Enumeratum discussion

Log in or Post with

Enumeratum reviews and mentions

Posts with mentions or reviews of Enumeratum. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-26.
  • How to implement `if-else if -else if -else` with cat effect IO in Scala?
    1 project | /r/scala | 16 May 2023
    I'm not sure I understand what Cats or cats-effect has to do with what you're trying to do. As far as I can tell, it sounds like what you're asking is simply "what's the best way to implement an enumerated type in Scala?" The best answer to that I'm aware of is Enumeratum.
  • Concise enumeration in Scala
    1 project | /r/scala | 16 Feb 2023
    In Scala 2: enumeratum which is, essentially, option 3 from your post.
  • Simple, Naïve, and Wrong: More than you wanted to know about Scala Case Classes
    3 projects | /r/scala | 26 Feb 2022
    And for exactly the same reasons one shouldn't override equals and hashCode in a case class, they shouldn't manually implement an enumeration and instead let a well-tested macro (2.x) or the compiler itself (3.x) handle reliably doing the automated code generation. The more code that is generated by the compiler, the smaller the defects, technical debt, and security vulnerability surface areas.
  • A survey of programming language enum support
    2 projects | /r/programming | 21 Feb 2021
    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).
  • A note from our sponsor - InfluxDB
    influxdata.com | 25 Apr 2025
    Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems. Learn more →

Stats

Basic Enumeratum repo stats
4
1,201
5.7
28 days ago

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Scala is
the 37th most popular programming language
based on number of references?