nitter
Francis Irving
@frabcus
1 Aug 2016
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
Daniel Silverstone ๐๐๐๐ยฒ ๐ณ๏ธโ๐๐ฌ๐ง
@dsilverstone
1 Aug 2016
Replying to
@frabcus
Kinda like a Haskell 'Maybe' ?
Aug 1, 2016 ยท 12:33 PM UTC
1
Francis Irving
@frabcus
1 Aug 2016
Replying to
@dsilverstone
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
Daniel Silverstone ๐๐๐๐ยฒ ๐ณ๏ธโ๐๐ฌ๐ง
@dsilverstone
1 Aug 2016
I love Maybe, and also Either. Both are lovely little monads.