170
// Implement (lemmy.zip)
you are viewing a single comment's thread
view the rest of the comments
[-] marcos@lemmy.world 16 points 5 days ago

Yeah, just to say it more clearly: that kind of thing is why lots of people out there insist that operator overloading is a bad idea.

And yeah, it's a C++ thing that mostly doesn't happen in other languages.

[-] TeamAssimilation@infosec.pub 3 points 5 days ago

Sincerely agree. Explicit is better then implicit, that’s a general engineering axiom.

Instead of overloading and making the next maintainer hunt for overloads, a clearly named function that does the critical steps would make the code immensely more maintainable. C++ is C gone wild.

this post was submitted on 01 Aug 2025
170 points (100.0% liked)

Programmer Humor

25518 readers
2172 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