Feeling slightly exhausted by the world? Let’s reverse a string in Rust in a needlessly complicated way. I was expecting to make a tiny simple video and ended up going further into unsafe than I ev…
Feeling slightly exhausted by the world? Let’s reverse a string in Rust in a needlessly complicated way. I was expecting to make a tiny simple video and ended up going further into unsafe than I ev…
Actually
chars()is pretty simple - it’s just UTF-8 decoding which is elegant and simple.The complexity is all around unicode, not UTF-8.