4 ms·
> what can you expect from a language that uses "+", the quintessential notation for commutative operations, for the (very non-commutative) operation of concate
by bakery2k 7y ago
> what can you expect from a language that uses "+", the quintessential notation for commutative operations, for the (very non-commutative) operation of concatenation?
Is this any worse than using `+` for floating-point addition, which isn't even associative?
- enriquto 7y agoBut floating point addition is commutative! Even if it wasn't, floating point numbers are very often regarded as approximations of real numbers, where addition is associative. String concatenation cannot be construed to have any resemblance of commutativity.