And I got few questions:
the book doesn’t say anything about the scope of
match, and during my attempt, I found the scope of
matchis counterintuitive, I can only use
match, because otherwise compiler would not allow assigning in None branch, why is that?
- it seems rust borrow checker does not work well with loop: I can not eliminate the use of
curin loop, otherwise checker would confused and refuse to compile. This took me several hours to find out it’s not my fault but checker’s. Is there any way I can eliminate