News for hackers. Stuff that matters.
Re:Rust Language Cheat Sheet by steveklabnik on Monday August 05, 2019 @10:54AM (#20614661)
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 :)

Re:Rust Language Cheat Sheet by asdkhadsj on Monday August 05, 2019 @10:59AM (#20614696)
Apologies for the poorly worded question. Regardless, thanks much as always :)
Re:Rust Language Cheat Sheet by steveklabnik on Monday August 05, 2019 @11:05AM (#20614749)
I don't think it was poorly worded; I'm just chugging some coffee and find some discussions easier than others :)