Subject: Re: [boost] [local] Simplifying the parenthesized syntax
From: Jeffrey Lee Hellrung, Jr. (jhellrung_at_[hidden])
Date: 2011-02-07 12:12:03
On 2/7/2011 8:08 AM, Lorenzo Caminiti wrote:
> The purpose of this email if to brainstorm possible ideas to simplify
> the parenthesized syntax. Sorry in advance if not all that I say is
> correct -- I haven't implemented it yet so I might be saying
> inaccurate/unfeasible things here and there. As always, your feedback
> is very welcome :)
> PRELIMINARY IDEAS TO SIMPLIFY THE PARENTHESIZED SYNTAX
> Consider the following parenthesized syntax for local functions:
> (void) (f)( (int)(x) (double&)(y) (const bind)((a)(&b))
> (bind)((&c)(d)) ) // 
> The followings are possible ways to simply this syntax.
[...snip various options...]
There's also maybe something like
(void) (f) ( ( int, x ) ( double&, y ) ( const bind, (a)(&b) ) (
bind, (&c)(d) ) )
(if that can be made to work).
But otherwise, I agree with your points on  (does not make use of
technically C99-only features and allows the most information to be
extracted by the preprocessor).
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk