:) I would go for a+b+c, but '%s%s%s' % (a, b, c) is among the obvious ones - it is nicer than +, because it hints you what the end result is going to look like.
Most of the time the simplicity of expression is worth more than any hypothetical performance gain.
Re: the first one is obviously bad in any language with immutable strings
Date: 2020-03-30 08:35 am (UTC)Most of the time the simplicity of expression is worth more than any hypothetical performance gain.