This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]