3 ms·
In the specific case of Python string concatenation, you don't need the operator at all: >>> x = ( "abc" ... "def" ) >>> x 'abcdef' Erlang also
by jerf 16y ago
In the specific case of Python string concatenation, you don't need the operator at all:
>>> x = ( "abc"
... "def" )
>>> x
'abcdef'
Erlang also works this way. Note it only works for string literals.
But that's just FYI, it obviously doesn't affect your point.
It's actually slightly strange to me that for everything else Perl does that this doesn't work in Perl.
- kragen 16y agoOh, thanks! I'd forgotten that C feature of Python. Unfortunately it doesn't work in JS.