Re:Why Perl Didn't Win
by andybak on Sunday January 18, 2015 @09:59AM
(#8907660)
I'd recommend:
But yes - either way - it solves the need to do str() when concatenating.
[ Parent
| on HN ]
I never understood the need for the new style of formatting, or the advantage. Fortunately % formatting is no longer getting deprecated.
The only downside that I've come across is when you do something like:
"%s %s" % blah
If a bug causes `blah` to be a string (rather than a tuple or a list), it will attempt to expand the string, possibly giving a confusing error.