Programming as a hobby means I can do whatever I want!

https://sh.itjust.works/post/20719588

Programming as a hobby means I can do whatever I want! - sh.itjust.works

Instead of

if let Some(a_) = a{ () } else if let Some(b_)=b{ () } else { dostuff }

you could just use

if a.isNone()&&b.isNone(){ dostuff }

Also if you don’t use the value in a match just use _

That’s a good point, thanks. Maybe I’ll go without the if entirely, the (janky) code is still very much in flux ;)