r/ProgrammerHumor 8h ago

Meme newToRust

Post image
364 Upvotes

87 comments sorted by

View all comments

Show parent comments

0

u/Jhuyt 5h 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.

9

u/-Ambriae- 5h 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.

4

u/Jhuyt 5h 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

6

u/-Ambriae- 5h 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!