Same here.

----- Original Message ----- From: "Francisco J Ballesteros" <n...@lsub.org>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Sent: Wednesday, September 02, 2009 11:43 AM
Subject: Re: [9fans] "Blocks" in C


IMHO, I'd say C is C and I think it's better to leave
it as it is.  If you want a language with extra features you can
probably find one.

On Wed, Sep 2, 2009 at 10:04 AM, Anant Narayanan<an...@kix.in> wrote:
Mac OS 10.6 introduced a new C compiler frontend (clang), which added
support for "blocks" in C [1]. Blocks basically add closures and anonymous functions to C (and it's derivatives). Full details with examples are in the linked article. I think the feature is quite elegant and might be useful in
cases where you want map/reduce like functionality in C.

How much effort would it be to support a feature similar to blocks in 8c
(and family)? What are your thoughts on the idea in general?

--
Anant

[1] http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10






Reply via email to