Talk:First-class function: Difference between revisions

Content deleted Content added
No edit summary
Line 23:
It seems to me that if you have to wrap a function in a 'proc' object in order to assign it to a variable, then you don't really support first class functions. Something else I would expect to be able to do in a language that supports first class functions:
<code>
 
def f(x)
def f(x+4)
x+4
end
g = f end
g = f
g(2)
 
</code>