[Python-Dev] Re: Function Prototypes

2021年12月26日 09:04:04 -0800

> On 26 Dec 2021, at 02:16, Steven D'Aprano <[email protected]> wrote:
> 
>> Hard enough that you really ought to help your reader out with a 
>> name,
> 
> What are you going to name it?
> 
> Int_and_Float_and_Int_returns_List_of_Int_Function
> 
> tells us nothing that
> 
> (int, float, int) -> list[int]
> 
> Callable[[int, float, int], list[int]]
> 
> doesn't already say.
It was said earlier in this thread that the naming should depend in the problem 
domain.
That name will not be as you suggest a long wordy thing but have a
name that is easier to understand.
So it might be CostFunction that would be a great name in that problem domain.
Barry
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/DKCKTY4TOKKI2IJNORX6RPT7XQF3GP7J/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to