2 ms·
Perl uses ~ for string concatenation. Nothing says that you cannot use both infix "++" for concatenation and unary ++ for increment. "-" is both a unary prefi
by brandmeyer 5y ago
Perl uses ~ for string concatenation.
Nothing says that you cannot use both infix "++" for concatenation and unary ++ for increment. "-" is both a unary prefix and binary infix operator, for example.
- mst 5y agoPerl uses '.' for string concatenation. Nothing says that I can't do that but in context of deliberately -not- re-using operators for completely different things it would seem rather self-defeating.
- brandmeyer 5y agoOof, you're right. I was thinking of Raku.