I would also like to not that encoding the the Option<char> using the unused bits of the return value is a perfectly valid implementation. But that is exactly what it is, an implementation detail. It could work exactly the same way as today but the programmer wouldn’t have to care about how it was implemented, just whether they got a char or None.
dmit|6 years ago
https://play.rust-lang.org/?version=stable&mode=debug&editio...
steveklabnik|6 years ago