News for hackers. Stuff that matters.
Re:Why Rust helps even if you have to use a lot of `unsafe` by diarrhea on Wednesday August 02, 2023 @11:13AM (#36972000)
A Union in itself is not a sum type. Rust even has unions:

https://doc.rust-lang.org/reference/items/unions.html

The unions of Rust are tagged unions that can hold data:

https://doc.rust-lang.org/book/ch06-01-defining-an-enum.html

which is immensely powerful in data modeling.

There are no comments on this comment yet.