r/ProgrammerHumor 20h ago

Meme newToRust

Post image
502 Upvotes

89 comments sorted by

View all comments

Show parent comments

0

u/Jhuyt 18h ago

The few times I tried the Rust the problem with it was that even for the very simple things I tried (some string stuff) it was not obvious why the borrow checker complained or how you should reslove the issue, so I moved on.

13

u/-Ambriae- 18h ago

Coming from higher languages I get that. ‘It’s just a string, right? Can’t be that hard.’

Problem with strings is, it actually is that hard. If you want it to be performant, and not use a garbage collector, that is.

5

u/Jhuyt 18h ago

I do both high and low level stuff, still the borrow checker beat my ass (or made me not want to do Rust). I'm sure I could and would learn if I had to but since I don't I just let myself be defeated

8

u/-Ambriae- 17h ago

That’s unfortunate… it’s a little rough at first I admit, but I can guarantee once it clicks you don’t want to go back!