I like that in Rust pointers can't even be null, you have to wrap them in a kind of an "enum" (union, ish) of the pointer and Nil value.
1
1
I don't know Haskell, but looking quickly that's more like Rust's "Option" which is in std library, built using the odd "enum"
2
So rust's enum is an enumeration of types?
Aug 1, 2016 ยท 4:36 PM UTC
1

