Operator overloading is bad in its own right, but it's a subclass of the larger problem here, which is the "well, if you squint a little, it kinda makes sense" approach to design.
This is what dynamic typing encourages. < is not a defined operation on sets, but if your language can't catch it at compile-time, might as well make it do something useful, right?https://twitter.com/raymondh/status/1003806314437361664 …
-
-
Show this thread
-
I think this sort of thing survives for two reasons. First, because most languages evolve, and evolution is messy. Second, because nerds get a little dopamine hit every time they learn about a quirk like this -- they can use it to signal their superior command of the language.
Show this thread -
One fateful day, a bored programmer thought, "What if I designed a language that was just quirks all the way down?" and Perl was born.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.