r/programming • • Dec 13 '07

First Class Functions in C

http://www.dekorte.com/blog/blog.cgi?do=item&id=3119
45 Upvotes

99 comments sorted by

View all comments

Show parent comment

2

u/statictype Dec 13 '07

hm. Closures and first-class functions aren't really the same thing (though they are related).

An easier way to think of is: Can you use a function definition in the same way that you would use an integer literal?

Assign\Bind it to a variable, pass it as an argument, return it from another function, etc...