• TehPers ( TehPers@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    While I agree with you that anonymous sum types are useful, the language designers tend to avoid anything that might include a hidden cost (in this case either the size of the enum or cost of boxing). Something along those lines might end up in the language eventually, though.