3 ms·
Why are dunder methods a "severe design mistake"?
by daelon 2y ago
Why are dunder methods a "severe design mistake"?
- nu11ptr 2y agoI 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.