On 10/18/21 6:29 AM, Mathew Elman wrote:

>> What you are describing is very, very dissimilar to currying. It's simply 
multi-argument
> functions with a different call syntax.
>
> It is almost identical to currying, the only differences are:
> 1. the intermediate return being an object with an attribute (rather than a 
new function)
>    that you call.
> 2. the names of the attributes from 1 (which aren't a thing otherwise) are 
declared when
>    defining the initial function

Citations, please?  It's your idea, so it's on you to come up with supporting 
evidence.


>> It's not even close to worthwhile to have special syntax for rare cases.
>
> It would make sense for a huge number of functions, its just not a natural 
way to consider
> writing them because the syntax doesn't exist e.g. almost any boolean 
function makes sense
> this way.

Again, a example list of functions would help -- if there are truly a huge number of them then giving us 10 to 20 shouldn't be hard.

--
~Ethan~
_______________________________________________
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/GGJZSO2FT5LBU4AVE2AGPJTPQ6E7SOMU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to