by siebenmann · 1y ago · 0 comments
I agree with you about the overall motivation for Rust-style enums. I just think it's surprisingly complex to get even the memory efficiency advantages, never mind anything more ambitious.
The solution to this should be trivial. You just have to extend the gcshape concept to account for the enum discriminator.
I'm not sure what you're referring to with 'anything more ambitious'.