@became_fish Yeah, I find it quite helpful to separate parsing logic out from the root of the function to keep the variable names clean in the root. I end up creating steps as blocks.
some_function() is returning an Option, if it's None then you return out from where you are, otherwise you continue and do your thing with the contents of the value 'val'?
Maybe:
if let Some(val) = some_function() {<br></br> println!{"{}", val)<br></br>} else {<br></br> return Ok(...)<br></br>
@Muddobbers this works, but i'm looking for something that won't increase the indent level (if i do this five times in a function, i don't want my code to look like a pyramid). i think let... else that other replies have brought up is what i'm looking for here