Apple Blocks added to C++?
Martin Franhaufer
zoogang at telefonica.es
Wed Sep 2 00:49:02 PDT 2009
Walter Bright Wrote:
> Nick Sabalausky wrote:
> > "Walter Bright" <newshound1 at digitalmars.com> wrote in message
> > news:h7l32i$ev$1 at digitalmars.com...
> >> S. wrote:
> >>> I was wondering what other people thought about this addition to C++ by
> >>> Apple. Heh.
> >>>
> >>> http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10
> >>
> >> I find it strange that people are continuing to reinvent nested functions
> >> in ugly ways.
> >
> > No offense, but Ruby and Python users would probably get a good chuckle at
> > hearing the D creator saying that ;)
>
> Perhaps they would, but I think they would agree that a nested function
> should follow the same syntax as a regular function.
>
>
Yes - Pascal has been doing that for years :-)
> > But in the case of C/C++, I consider it a minor miracle that they were able
> > to pull it off without making it 10x uglier than what they actually ended up
> > with.
>
> For C++0x it's unnecessarily complicated - and they still don't have
> just plain old nested functions. C has no nested functions.
More information about the Digitalmars-d
mailing list