Steven D'Aprano <st...@remove-this-cybersource.com.au> writes:

> On Sun, 31 Jan 2010 04:28:41 -0800, Ed Keith wrote:
>
>> In most functional languages you just name a function to access it and
>> you do it ALL the time.
>> 
>> for example, in if you have a function 'f' which takes two parameters to
>> call the function and get the result you use:
>> 
>>  f 2 3
>> 
>> If you want the function itself you use:
>> 
>>    f
>
> How do you call a function of no arguments?

In a functional language, a function of no arguments will always return
the same value.  So, from a non-functional point of vue, f is both the
function and its value.

-- 
Arnaud
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to