News for hackers. Stuff that matters.
Re:Why Checked Exceptions Failed by cubefox on Saturday July 15, 2023 @08:46PM (#36742336)
> And there's a good reason almost no statically typed language has support for union types

For what it's worth, I learned about union types from Ceylon, which was statically typed.

Re:Why Checked Exceptions Failed by Blikkentrekker on Sunday July 16, 2023 @03:10PM (#36750430)
Which is a very obscure language.

Type erasure at runtime simply isn't really possible with full union typing and looking at it as a consequence Ceylon has to box everything into a structure which contains a type tag which is obviously not an overhead a language such as Rust is willing to pay.