{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreievvd7urlvsuk2hq2kcwrxxvbz2dge3vqu6erg6f67ytd246iscba",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mk443pgovfu2"
},
"path": "/t/add-an-implementation-for-the-default-trait-for-std-controlflow/24191#post_1",
"publishedAt": "2026-04-22T17:51:11.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "I think it would make a lot of sense for ControlFlow<T, B> to implement Default when T: Default, with the value returned being Continue(T::default()). This is a small addition that can be useful in certain contexts. Choosing Continue as the default variant seems obvious to me, but if anyone feels different perhaps this could be confusing and should be disregarded. I would like to hear your opinion.",
"title": "Add an implementation for the Default trait for std::ops::ControlFlow"
}