Boost logo

Boost :

Subject: Re: [boost] [qvm] Terseness of syntax etc.
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2015-12-09 03:31:19


On Tue, Dec 8, 2015 at 9:53 PM, Emil Dotchevski <emildotchevski_at_[hidden]>
wrote:

> On Tue, Dec 8, 2015 at 8:25 AM, Phil Endecott <
> spam_from_boost_dev_at_[hidden]> wrote:
> > I find most of the identifiers too short.
> You use r and w for read and write access [...]. I know, short names. :)
> template <int I> static float r( float3 const & );
> template <int I> static float & w( float3 & );
>

Isn't the traditional get/set a good middle-ground between terseness and
expressiveness? My $0.02. --DD

template <int I> static float get( float3 const & );
> template <int I> static float & set( float3 & );
>

> template <> float v_traits<re::float3>::get<0>( float3 const & a )
> { return a.x; }
>


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