Commas and Braces

We'll cover the following...

There are some funny details about the arms of a match expression worth covering. We saw one way of writing them above. The expressions were blocks surrounded by their own expressions, and they had commas after each block. As a reminder:

Press + to interact
match self.job {
Job::Teacher => {
format!("Hello, you're a teacher named {}", self.name)
},
Job::Scientist => {
format!("Hello, you're a scientist named {}", self.name)
},
}

There ...