A large number of topics have come up that wish to make Python more
"fluent" (https://en.wikipedia.org/wiki/Fluent_interface).  This is an
example of the same general idea.  In every single case, the goal has been
almost universally rejected as opposite Python's attitude.

Converting fun(a) to a.fun() might be possible automatically, but if most
such fun() functions return None because they are mutating functions, this
does not get chaining of methods, which is the underlying goal.  While
technically, Python *could* usually return self from most method calls (and
libraries like Pandas do exactly that), the Python developers have very
deliberately decided that they don't want that.

On Sun, Jun 28, 2020 at 11:00 AM <marc...@email.com> wrote:

> Is possible some day add Uniform Function Call Syntax (UFCS) in Python
> like Dlang?
>
> Example:
> https://tour.dlang.org/tour/en/gems/uniform-function-call-syntax-ufcs
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at
> https://mail.python.org/archives/list/python-ideas@python.org/message/UBGJ7K5YAYZSREN2QSTUEMLAS4JMYUCU/
> Code of Conduct: http://python.org/psf/codeofconduct/
>


-- 
The dead increasingly dominate and strangle both the living and the
not-yet born.  Vampiric capital and undead corporate persons abuse
the lives and control the thoughts of homo faber. Ideas, once born,
become abortifacients against new conceptions.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/NPVTE7AH3BREPUGEKY64J3PYZAXTZVD6/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to