ZILtoid1991 to Programmer Humor@programming.dev · 2 months agoMade this after someone noticed her face looked like PirateSoftwareimagemessage-square61linkfedilinkarrow-up1229arrow-down135
arrow-up1194arrow-down1imageMade this after someone noticed her face looked like PirateSoftwareZILtoid1991 to Programmer Humor@programming.dev · 2 months agomessage-square61linkfedilink
minus-squareRustyNovalinkfedilinkarrow-up6·2 months agoNever said that. In fact, enums have lots of issues that can add a lot of boilerplate code. But actually having data associated with the type system instead of just a flag is a lot more powerful and less prone to errors than classic enums You can also put functions on this union type that allows easy abstraction of what state the union is in
Never said that. In fact, enums have lots of issues that can add a lot of boilerplate code.
But actually having data associated with the type system instead of just a flag is a lot more powerful and less prone to errors than classic enums
You can also put functions on this union type that allows easy abstraction of what state the union is in