This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Unnamed functions, functors or, more formally, function literals
>>>>> "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