I've grown to dislike operator overloading quite a bit, and thus developed a general skepticism with regard to operators in general, and I think this article actually reveals why partially. First off, I'm surprised this article doesn't touch at all on the fact that operators are usually the only "blessed" functions in languages to be able to be written in infix form, as I think that's actually where many of the "bene…
The best part is that string concatenation is a perfectly cromulent "multiplication", forms a free monoid, and in line with some notations for concatenation of tuples. Funny the associations we make...
"a"~"a"~"a" = "aaa" = "a"^3
And while it's not commutative, it is anticommutative with reverse: -"abc" = "cba"
"ab"~"cd" = -(-"cd" ~ -"ab") \
= -("dc"~"ba") = -"dcba" = "abcd"