Indented multi-line strings

Dan Stromberg drsalists at gmail.com
Sat Jun 2 12:52:19 EDT 2018


On Fri, Jun 1, 2018 at 2:57 PM, Chris Angelico <rosuav at gmail.com> wrote:

> If you dislike adding features to a language on the basis that it
> makes the language harder to learn, remember that you instead force
> one of three even worse options:
>
> 1) Messy code because people unindent inside their source code,
> creating wonky indentation (which Python usually avoids)
>
> 2) Forcing readers to look up the third-party module you're using
> before they can understand your code
>
> 3) Forcing readers to look up your ad-hoc function before
> understanding your code.
>
> All of these make it harder to understand your code, specifically
> BECAUSE the language doesn't have the requisite feature. Well-written
> language features are good, not bad, for readability.
>
> A well designed language has a small core, and large libraries.

Please don't make Python into a big language.

Almost anytime you can do something in a library instead of in the core
language, it's better to do it in a library.

Looking things up in a library isn't onerous.



More information about the Python-list mailing list