this post was submitted on 30 May 2024
394 points (94.6% liked)

Programmer Humor

37663 readers
146 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] CapeWearingAeroplane@sopuli.xyz 7 points 1 year ago (1 children)

I would argue that there are very definitely cases where operator overloading can make code more clear: Specifically when you are working with some custom data type for which different mathematical operations are well defined.

Yeah, that's a very useful exception.