book
book copied to clipboard
Explain curly bracket with semicolon in tutorial
While going through the guessing-game-tutorial, I've noticed we end up with an expression of this sort:
let some_var = match { some_variants };
Shell shocked, I stared at the }; combination only to realise it adheres to everything I had learned up until that point. So I figured it might be useful to others that I put it to words.