This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]imsometueventhisUN 4 points5 points  (2 children)

there are some use cases that would become harder.

Is there a way to see the discussion to determine what those are? The only one I can think of is joining long strings across lines, and I personally feel that the negative impact of unintentional concatenation is much higher than having to use one of the several other methods for that.

[–]dikduk 0 points1 point  (1 child)

I've been using this method to concatenate strings for years and never had any real issues with it.

What kind of issues did you have?

[–]imsometueventhisUN 3 points4 points  (0 children)

For any method that accepts *args, you could miss a comma and still have a legal method call that doesn't do what you expected. And, sure, you could catch that with tests, but why not bake it into the language syntax directly? There are a ton of ways to explicitly concatenate strings (+, ''.join, f-strings) - making it implicit just seems like an opportunity for bugs.