If those are normal integers, the compiler optimizes that to a simple compare and branch/cmov.
- 0 Posts
- 3 Comments
Joined 13 days ago
Cake day: July 30th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
anton@piefed.blahaj.zoneto Programmer Humor@programming.dev•Use this information wiselyEnglish28·11 days agoMy IDE says:
'(', '+', '-', '.', ';', <operator>, '[' or '}' expected, got ';'
But the rust compiler explainserror: unknown start of token: \u{37e} help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not``` what a killjoy.
While the language can be hard to get used to, the error messages are mostly great.
But sometimes you can send it on a goose chase with impossible type inference.