Unnamed functions, functors or, more formally, function literals
Erik Trulsson
ertr1013@student.uu.se
Fri Mar 15 15:34:00 GMT 2002
On Fri, Mar 15, 2002 at 06:26:20PM -0500, Robert Dewar wrote:
> I see insufficient value in anonymous functions. It seems like minor
> syntactic sugar, that in fact does not fit into C very well,
> so it is more like syntactic vinegar :-)
If they are useful or not is mainly a matter of programming style.
Personally I like them, but then I am familiar with functional
languages where anonymous functions are an important part of the
language. (Program in List or ML for a while, and I think you will see
how they can be useful.)
I agree that they are not very "C-like" so it might be difficult to add
them in a sane manner.
--
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se
More information about the Gcc
mailing list