this post was submitted on 02 Sep 2024
893 points (99.1% liked)

Programmer Humor

32380 readers
1260 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Incase it doesn't show up:

you are viewing a single comment's thread
view the rest of the comments
[–] CameronDev@programming.dev 3 points 2 months ago (1 children)

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 3 points 2 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.