On 28/04/20 1:17 pm, Steven D'Aprano wrote:
I think
that it is silly to say that you have to be familiar with Eiffel to
recognise the connection between running a function once and the word
"once".

The connection is very obvious after you know about it.
And probably you can guess the meaning if you see an
@once decorator in someone's code. But it's less clear
that a person who hasn't seen the word "once" used
this way will think of searching for it when they want
a way to cache the return value of a function.

I know I would be more likely to look for something called
"cache" or "memoize". (And I already knew about Eiffel's
use of "once"!)

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

Reply via email to