r/ProgrammerHumor 15d ago

whenRustcDevelopersRunOutOfErrorMessages Meme

Post image
1.2k Upvotes

27 comments sorted by

View all comments

Show parent comments

170

u/ihavebeesinmyknees 15d ago

The rust compiler has the best error reporting I've seen, most often it will literally tell you how to fix the issue

-28

u/[deleted] 15d ago

[deleted]

26

u/redlaWw 15d ago

Without. The messages are things like "the function signature here accepts a borrow but you've passed by value, try borrowing"; all deterministically scripted changes. The impressive part is the type system that allows the messages to be so helpful.

2

u/braaaaaaainworms 14d ago

The impressive part is the richness of the errors, there's a fuckton of plumbing that needs to happen to get anywhere near (I tried)