On Friday, 21 July 2017 at 21:32:48 UTC, Andrei Alexandrescu wrote:

with (auto r = makeMeARange)
if (!r.empty)
with (auto x = r.front)
{
   ...
}


Andrei

I'm being real nitpicky, but this in particular just seems like a slightly worse way to write

    with (auto r = makeMeARange)
    if (!r.empty)
    {
        auto x = r.front;
        ...
    }

But yeah, it's cool construct that lends itself to pretty neat chaining.

Reply via email to