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 …
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.
-
-
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 threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.