146
Accidental shitpost (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] flamingo_pinyata@sopuli.xyz 21 points 1 week ago

You're using Java, there's your problem

[-] LodeMike@lemmy.today 8 points 1 week ago

This syntax isn't actually a problem by itself. Go does this too (no operator overloading)

[-] Gremour@lemmy.world 4 points 1 week ago* (last edited 1 week ago)

In Go you can compare structure instances with == (by value). You can also compare pointers (in which case they can be different even if values are equal). You get what you ask for.

Also, I've never needed "Equals" method in Go.

[-] LodeMike@lemmy.today 5 points 6 days ago

I think you can also == two structs in Java, but not classes.

this post was submitted on 20 Oct 2025
146 points (100.0% liked)

Programmer Humor

27065 readers
450 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