30 ms·
That's clear example of bad language design. Overloading operator syntax and breaking semantics in dynamic language is big no-no. It may not be good for statica
by nabla9 6y ago
That's clear example of bad language design. Overloading operator syntax and breaking semantics in dynamic language is big no-no. It may not be good for statically typed languages either, but at least they can get away with it.
Convention of using + for joining sequences and addition is human language level abstraction. It breaks in programming.
In formal theory strings over an alphabet form a semiring, but (*) is used for concatenation and (+) for alternation. Not applicable anyway.
Last, no clear syntactical cue to distinguish operators acting on elements from those acting on objects.