|
|
|
|
|
by dschobel
5074 days ago
|
|
Doesn't ruby with its "operators are actually methods and fair-game for redefinition" implementation disprove the theory operator overloading is an a priori Bad Idea (tm)? Those guys seem to manage the flexibility pretty well. |
|
I think it works because people don't usually just go around wantonly pushing objects onto each other. It's usually part of a DSL that's used deliberately. Some of the craziest I've seen were things like _why's Hpricot library, which made a sort of xpath-like DSL:
If I saw it out of context I'd assume it was some sort of pseudocode.