Algebraic Python Enums

(lavafroth.is-a.dev)

1 points | by lavafroth 7 hours ago

1 comments

  • jll29 6 hours ago
    Some disadvantages of the proposed solution are:

    - memory overhead

    - source code bloat

    The second can be solved by creating a pre-processor that translates a more Rust-like syntax into the proposed Python code. But that would reduce interoperability with IDEs (e.g. syntax coloring) and linters.