
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)) ) // [0]
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 [0] (does not make use of technically C99-only features and allows the most information to be extracted by the preprocessor). - Jeff