2 ms·
I can't reply to steveklabnik for some reason. But I think if let would replace that unwrap he uses there.
by dep_b 10y ago
I can't reply to steveklabnik for some reason. But I think if let would replace that unwrap he uses there.
- steveklabnik 10y agoIf you try to reply on HN too quickly, it hides the reply button as to discourage quick back-and-forths. I mention in the post that this specific code would be best written with if let, but that it's not about the specifics, it's about the general pattern.