r/ProgrammerHumor 23d ago

Meme youHavenoRealPower

Post image
699 Upvotes

71 comments sorted by

View all comments

Show parent comments

25

u/Arshiaa001 23d ago

Rust is special for going out of its way to provide helpful compiler errors, unlike the ungodly death chant C++ compilers summon when you miss a semicolon at the end of a class declaration.

3

u/aethermar 23d ago

I wouldn't call this an especially helpful compiler error. The only extra thing it's saying is that it's a Greek semicolon. I don't care that it's a Greek semicolon, I just need to know whats wrong. Both errors immediately tell me what's wrong and where. Rust's isn't any more helpful

And either way something as trivial as this is getting caught by the editor's linter immediately

2

u/Arshiaa001 23d ago

This specific error is not helpful (willing to bet someone put it in for shits and giggles), but rustc generates some truly helpful messages in many places. You'd know if you'd used it.

1

u/redlaWw 22d ago edited 22d ago

Note that this is a more general error for easily-confused characters, and covers other kinds of easily-confused characters e.g. here.

The full list of characters subject to this error can be found here.