3 ms·
It is not 100% clear what specifically you're saying to me, to be honest. All I know is, that in the code above, if you expect bar() to return its value from th
by steveklabnik 7y ago
It is not 100% clear what specifically you're saying to me, to be honest. All I know is, that in the code above, if you expect bar() to return its value from the block, your mental model of how this stuff works is incorrect.
To be honest, my mental model of all of this is "write code, fix it when the compiler complains"; I rarely think about semicolons, and cargo fmt will remove extraneous ones, so it's sometimes hard for me to go anywhere between "these are the rules of the grammar" and "don't think about it at all". My failing, not yours :)
- asdkhadsj 7y agoApologies for the poorly worded question. Regardless, thanks much as always :)
- steveklabnik 7y agoI don't think it was poorly worded; I'm just chugging some coffee and find some discussions easier than others :)