In the built_value lib I found the example how to make enums. So I'm a bit confused. Because I do not see right away what are the benefits of useing the built_value enums. Does some one know it? What do I overlook?
Serialization is one thing; the other major one is that they are proper classes: you can add code to them, and they can implement interfaces.
In this way they're much like Java's enums.
Mostly that they can easily be de/serialized from/to JSON.
Darts built-in enums are quite a bad fit where serialization is needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With