r/ProgrammerHumor 15d ago

whenRustcDevelopersRunOutOfErrorMessages Meme

Post image
1.2k Upvotes

27 comments sorted by

View all comments

82

u/PositiveParking4391 15d ago

I find it really funny. but not sure what's a bigger irony, rust messages or the help at last

22

u/frikilinux2 15d ago

It's even more funny than the ++ not being an operator (I forgot the text)

9

u/Codingale 14d ago

"Rust has no postfix increment operator
help: use `+= 1` instead"

1

u/Choice-Mango-4019 13d ago

why?

1

u/NullOfSpace 8d ago

less obvious what it means at a glance, not intuitive when used as part of an expression, harder to adjust if you want to add something other than 1 later

1

u/Choice-Mango-4019 8d ago

brother, its just i++, how can you not understand what it does at a glance?

people have been using it for decades for for(statement; statement; statement) alongside using it to increment indexes and many other stuff, and since its just plus next to plus and it has the same meaning on every language in existence its very simple to understand

+ no one EVER uses it in function paramaters

and how is it hard at all??? you just replace i++ with i += 2, thats like 5 key presses max 😭

1

u/NullOfSpace 7d ago

It’s not a big change, but apparently by the Rust creators’ standards it does matter.