<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> however, there's still one problem: you need to make sure you don't get wedged in a situation where you have one immutable borrow left, and you want to use exactly that index to tell the string to perform a mutation at a position… but you can't mutate because the index you are "turning in" to request the mutation is holding a borrow. Maybe the borrow checker already has rules smart enough to prevent this being a problem. I am still perpetually surprised by the borrow checker</p>