+1 to allowing f-strings.

Mariusz' position dropping .format() seems reasonable to me too. I can't
think of a reason to use them over f-strings, off the top of my head.

On Tue, 21 Jul 2020 at 09:00, laym...@gmail.com <laymon...@gmail.com> wrote:

> Hi folks,
>
> I personally like to use f-strings wherever it makes sense, so +1.
>
> I agree with Mariusz. I think we should only allow %-formatting and
> f-strings from now on.
> And yes, bulk updates should not be done. Aside from making unnecessary
> noise, there's always a risk in doing that kind of thing.
>
> Regards,
> Sage
> On Tuesday, 21 July 2020 at 14:28:54 UTC+7 Mariusz Felisiak wrote:
>
>> Hi y'all,
>>
>>     I will not stand against f-strings, I think we can allow them. My
>> main concerns is readability. f-strings are powerful and it's quite common
>> that they are used with functions calls and complex formatting which makes
>> code hard to understand and maintain, *"With great power comes great
>> responsibility" ...*
>>
>>     I'm strongly against any bulk updates to conform to this style. This
>> will just create unnecessary noise in the history, I know that there are
>> tools, please don't start this discussion again :)
>>
>>     I would also be in favor of keeping only %-formatting and f-strings
>> in Coding style docs. I don't see any reason to use also `format()` in a
>> new code.
>>
>> Best,
>> Mariusz
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/8a0cbf42-1879-4ed1-9d3c-8e6985012155n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/8a0cbf42-1879-4ed1-9d3c-8e6985012155n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM3Pwbv0PVsP9%3DMOKo0NA%2Ba3f3isrODaU6xCjXZYCPV_AQ%40mail.gmail.com.

Reply via email to