Hacker News new | ask | show | jobs
by daelon 590 days ago
Why are dunder methods a "severe design mistake"?
1 comments

I think they are really good design. The stick out like a sore thumb (reading > writing) so you immediately know "this does something a little special and isn't typically called directly". Contrast that with some languages that just use up perfectly good names in the namespace for operators. Unless you know they are special you are left wondering.