News for hackers. Stuff that matters.
Re:Kotlin: The Problem with null by anaphylactic on Friday January 12, 2018 @05:20PM (#16136856)
Maybe is just another Optional type, but with a much weirder name, so that's pretty obvious. But this makes me wonder - does Haskell optimize `Maybe`-like types down to a null-pointer, like Rust does?
Re:Kotlin: The Problem with null by user2994cb on Friday January 12, 2018 @06:22PM (#16137174)
Dunno, but I'd have thought that you can make None look like a null pointer, but Some(p) needs to be tagged in some way.
Re:Kotlin: The Problem with null by user2994cb on Saturday January 13, 2018 @12:13AM (#16138358)
Actually, having Some(x) be just a pointer to x seems to work fine without an explicit tag, as dragonwriter says below.