you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 1 month 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.

  • source
  • parent