Algebraic Python Enums (lavafroth.is-a.dev) 1 point by lavafroth 10 hours ago 1 comment Copy Link View on Hacker News
Copy Link jll29 10 hours ago Collapse Comment - Some disadvantages of the proposed solution are:- memory overhead- source code bloatThe 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. Reply View | 0 replies
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.