Option and Result implement IntoIterator.
for surprise in Some(vec![1,2,3]) {
}
Is there a strong use-case for it? All I can think of is already handled better by if let or dedicated Option/Result methods.
I’ve only used it by accident when I forgot to unwrap a value and instead of getting type error in the right place, I ended up with a “loop” that doesn’t make sense.
If it’s not used in the wild, can it be deprecated and eventually removed?