{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreibcq3d5dwgwrxoav5sxt3wuqnuxrpzigcof44ukmmlyk2ww4i7lfi",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mfq57yqoxlc2"
},
"path": "/t/pre-rfc-function-parameter-defaults/24011#post_11",
"publishedAt": "2026-02-26T01:26:18.000Z",
"site": "https://internals.rust-lang.org",
"tags": [
"3681"
],
"textContent": "CAD97:\n\n> Our hypothesis is that the remaining cases of optional arguments would almost if not entirely be served just as well by a cheap way to say \"use the default value.\"\n\nI like this phrasing\n\nFits nicely, too, with imagining some kind of feature for \"well in the same crate you can pass them exactly (to help remember to pass everything in wrapper, for example), but others have to pass the marker that there might be more later, so those additions are not source-semver-breaking\".\n\nBut of course that gets back to \"this is 3681 again, isn't it\", and how this behaviour fits better in a struct than a function.",
"title": "Pre-RFC: Function parameter defaults"
}