RFR: Generate Java enums
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Jul 7 21:36:51 UTC 2025
On Mon, 7 Jul 2025 18:50:48 GMT, David Alayachew <davidalayachew at gmail.com> wrote:
> What, in Java, gives you this OR-like functionality for enums? EnumSet!
Modelling each enum value as an enum set is certainly possible. It also sounds as overkill. One of the principles of jextract is to add as little overhead as possible. I think here we should just be honest and admit that C enums and Java enums don't have much in common, except for the use of the word `enum`.
-------------
PR Comment: https://git.openjdk.org/jextract/pull/284#issuecomment-3046580435
More information about the jextract-dev
mailing list