Boost logo

Boost :

From: Joel (joel_at_[hidden])
Date: 2005-05-05 07:59:22


Peter Dimov wrote:
> Dave Harris wrote:
>
>> It sounds like you are mimicking the "foreach" of some other
>> language. I think a C++ library should use C++ conventions, not the
>> conventions of whatever it is you are copying.
>
>
> The C++ 'foreach' is likely to be spelled 'for', if I'm not mistaken.
>
> for( int v: c )
> {
> }
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1650.html#85

Well, in that case, I suggest that BOOST_FOREACH be spelled:

     BOOST_FOR

Regards,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk