Boost logo

Boost :

Subject: Re: [boost] usage of auto in tutorials
From: degski (degski_at_[hidden])
Date: 2019-03-22 15:31:05


On Fri, 22 Mar 2019 at 17:18, Olaf van der Spek via Boost <
boost_at_[hidden]> wrote:

> > > if (auto rslt = read_data_from_file("config.cfg"))
>
> Is rslt short for result? Why not just use result?
>

As the scope is by definition limited, I would opt for r [the smaller the
scope the shorter the variable names].

degski

-- 
*"Big boys don't cry" - **Eric Stewart, Graham Gouldman*

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