impl<T: Display> Display for Option<T>?

Generally it seems that std doesn’t define Display for things where there are multiple reasonable choices, which is fairly often since humans are complicated :wink:

For the specific proposal given, it seems unfortunate that Some("").to_string() and None.to_string() would produce the same thing. And the best way to solve that seems like it’s context-specific, at which point not having the impl is just as good.

10 Likes