325
you are viewing a single comment's thread
view the rest of the comments
[-] anton@piefed.blahaj.zone 24 points 3 days ago* (last edited 3 days ago)

My IDE says: '(', '+', '-', '.', ';', <operator>, '[' or '}' expected, got ';'
But the rust compiler explains

error: unknown start of token: \u{37e}  
help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not```   
what a killjoy.
[-] BuboScandiacus@mander.xyz 15 points 3 days ago

But the rust compiler explains

If this is true then rust deserves all the praise it gets

[-] boonhet@sopuli.xyz 1 points 1 day ago

Rust's compiler is pretty much the reason the language gets so much praise. The borrow checking of course is the major reason, but it's great at hints too.

[-] anton@piefed.blahaj.zone 6 points 3 days ago

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.

[-] billwashere@lemmy.world 1 points 3 days ago

This is pretty cool. But my question is if the compiler knows it’s basically the same thing visually, why doesn’t it treat it the same way as far as syntax and just make them functionally equivalent;

[-] arrowMace@lemmy.world 1 points 8 hours ago

Because then logically extending this you end up with JavaScript, where "1"==1 and it's super hard to reason about what will/should happen

this post was submitted on 31 Jul 2025
325 points (97.9% liked)

Programmer Humor

25448 readers
2012 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS