{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihjhpch6ge4eq35ikua32mvewywa42zgyg3l7ajpwlvbvjrnnssp4",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mhe6y5qhecj2"
},
"path": "/t/introduce-a-way-to-construct-range-from-start-length/24073?page=2#post_35",
"publishedAt": "2026-03-18T16:04:08.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "You’re right about the issues with it needing to be `Copy` and I was sloppy not including the placeholder variable, but I’m not sure I follow why it should be `\"a\"..+25` rather than `\"a\"..+26`. If it’s meant to be short for `\"a\"..(\"a\" + 26)` then aside from the fact that\n\n * this should probably be characters rather than strings (as one of the other responses points out), and\n * this doesn’t mean anything at all under the syntax sugar proposal, which was kinda the point of suggesting it (namely: keep it limited to the things which make unambiguous sense with the syntax),\n\n\n\nI think it should be +26 and not +25 since `..` is an exclusive range so the number is the length of the range and `'a' + 26` is the character after `'z'` as it should be.",
"title": "Introduce a way to construct Range from start + length"
}