Incase it doesn’t show up:

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    Unsafe doesn’t let you just ignore the borrow checker, which is what generally tripped me up when learning to write rust.

    • rhombus@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      4 months ago

      That’s fair, I honestly haven’t used it in a while and forgot the real usage of unsafe code. As I said to another comment, it is a really rough language for game dev as it necessitates very different patterns from other languages. Definitely better to learn game dev itself pretty well first in something like C++, then to learn Rust separately before trying game dev in Rust.