Unnamed functions, functors or, more formally, function literals

Robert Dewar dewar@gnat.com
Fri Mar 15 16:30:00 GMT 2002


<<The main convenience IMO of anonyomous functions is that one does not
need to come up with a new name every time one needs a function that is
only to be used once.  This can also be achieved if one has nested
functions since then one can reuse the same name if necessary but one
can use pretty much the same arguments for and against nested functions
as for anonymous functions.
>>

Sorry, I don't understand the last sentence, we have nested functions
now. So what are you arguing for, you seem to say that if you have
nested functions then it is not so important to have anonymous
functions. If that is not what you are saying  please clarify.



More information about the Gcc mailing list