Unnamed functions, functors or, more formally, function literals

Paul Koning pkoning@equallogic.com
Fri Mar 15 06:31:00 GMT 2002


>>>>> "Paul" == Paul V Andreev <sd70030@lanet.lv> writes:
 Paul> Names are only needed for shared functions! Unnamed function
 Paul> could became an idiom denoting "a helper function used only
 Paul> once".

Names also make code more readable.

Unnamed functions exist in one language I know of (Lisp).  Admittedly
I don't have much experience in that language, but from modest
exposure to Elisp I have the impression that they are very rarely
used.

A rarely used feature in an esoteric language doesn't sound to me like
something crying out to be added to C...

	  paul



More information about the Gcc mailing list