{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicuuaauikiwwgmkywgrlenktftoxtoseocagzw77cpm32z27jcycm",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mj2my6luqwz2"
},
"path": "/t/q-why-do-match-expression-need-parenthesis-for-ops-to-the-right-but-not-left/24126#post_6",
"publishedAt": "2026-04-08T23:22:33.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Note that assignment expressions result in `()`, so you can do that like:\n\n\n let foo;\n match bar {\n Some(_) => foo = 1,\n None => foo = 0,\n }\n // foo is now initialized\n",
"title": "Q: Why do match expression need parenthesis for ops to the right but not left?"
}