News for hackers. Stuff that matters.
Re:Node.js Guide by jerf on Wednesday March 30, 2011 @07:55PM (#2389774)
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.

Re:Node.js Guide by kragen on Wednesday March 30, 2011 @08:45PM (#2389939)
Oh, thanks! I'd forgotten that C feature of Python. Unfortunately it doesn't work in JS.