|
Boost : |
From: joel de guzman (isis-tech_at_[hidden])
Date: 2001-05-28 18:22:03
From: "John Max Skaller" :
>
> > There was a proposal in comp.std.c++ to reuse the auto
> > keyword to do this. With this extension, we could do:
> >
> > auto rule = a | b >> c;
>
> That sucks. Why should inference
> be restricted to auto storage class?
It is not. You can use it for function arguments etc.
It just 'overloading' the almost unused 'auto' keyword
instead of adding another.
> This is the kind of thinking that has made C++ syntax
> even more ugly than C has forced it to be.
I think it is ok, IMO. We never use the 'auto' anymore.
It should be deprecated and the new meaning
replace the old.
>
> > Does anyone have a better way of doing this?
>
> dcl x = expr;
>
What makes this better?
Cheers,
Joel de Guzman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk