DEV Community

Discussion on: Learning Rust #1: Pattern Matching

Collapse
 
ryencode profile image
Ryan Brown • Edited

I'm just learning rust now (working my way through The Book), and working on a non-trivial personal project.
I hadn't gotten to the guards section yet. I can foresee some scenarios that this could come in handy, more so than a match-within-a-match construct.
Side note: I'm loving the concepts in rust as a language that protects you from yourself, while maintaining speed. :) - even if it sometimes feels painful to appease the borrow checker