--- On Sun, 1/31/10, Steven D'Aprano <st...@remove-this-cybersource.com.au> wrote:
> From: Steven D'Aprano <st...@remove-this-cybersource.com.au> > Subject: Re: Python and Ruby > To: python-list@python.org > Date: Sunday, January 31, 2010, 5:36 PM > 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 'pure' functional language a function with no arguments is, by definition, a constant. This is because a 'pure' function will always return the same result whenever given the same arguments. so if it has no argument it always returns a constant value. -EdK Ed Keith e_...@yahoo.com Blog: edkeith.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list