2 ms·
Unwrap will panic if no parent is found, whereas the `?` operator allows for a clean handling of this situation. Dealing with this case properly without using
by stymaar 10y ago
Unwrap will panic if no parent is found, whereas the `?` operator allows for a clean handling of this situation.
Dealing with this case properly without using a single `?`, gets really ugly with a lot of nested
if let Some(parent) = node.parent() {