Indented multi-line strings

Chris Angelico rosuav at gmail.com
Sat Jun 2 14:43:07 EDT 2018


On Sun, Jun 3, 2018 at 2:52 AM, Dan Stromberg <drsalists at gmail.com> wrote:
>
> 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.
>

How small is small, though? And how is a method worse than a library
function? People keep asserting this about the language needing to be
smaller, but never backing it up.

Was Python 1.0 better than Python 3.7 due to having fewer features?

ChrisA



More information about the Python-list mailing list