[Python-ideas] Descouraging the implicit string concatenation

Robert Vanden Eynde robertve92 at gmail.com
Wed Mar 14 13:09:47 EDT 2018


Le mer. 14 mars 2018 à 17:29, Paul Moore <p.f.moore at gmail.com> a écrit :

> Ironically, many of the places I see implicit concatenation used are
> where people need to work around linters complaining about line
> lengths. I understand the benefits of projects that mandate code
> passing lint checks, but I foresee sequences of commits:
>
> "Modify error X to be clearer"
> "Linter fix - split new message onto 2 lines to avoid long line"
> "Linter fix - explicitly concatenate with + because implicit
> concatenation is discouraged"
> "Linter fix - go back to the old message because the stupid linter
> complains about unnecessary addition of 2 constant values and I can't
> be bothered any more"
>

Haha, agreed, didn't think of that.
In my humble opinion, long lines are less of a problem with raw strings
(personal opinion based on html background).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180314/293e2141/attachment.html>


More information about the Python-ideas mailing list