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
Replying to @frabcus
I love Maybe, and also Either. Both are lovely little monads.

Aug 1, 2016 ยท 4:35 PM UTC