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…

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    7 hours ago

    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.