Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
NobodyNada
· 5y ago · 0 comments
That won’t allow extracting a value from the optional though, will it? i.e. I can’t do this something along the lines of:
if !matches!(val, Some(let x))
Comments
[–]
safarimonkey
5y ago
Indeed not, so it's not a full replacement. I'm not entirely sure that I like the idea of an "if let" variant creating bindings that escape the visual block, but I'd probably get over it.