
Dec. 26, 2021
4:57 p.m.
On 26 Dec 2021, at 02:16, Steven D'Aprano <steve@pearwood.info> 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