C++ Logo

std-proposals

Advanced search

Re: Initialisers in ternary operators

From: Dvir Yitzchaki <dvirtz_at_[hidden]>
Date: Sun, 13 Sep 2020 13:52:08 +0300
>
> Isn't it too low-level? How well does it *capture intent* and *how
> readable it is*? I do not think I want to *transform* anything (I just
> want to have a couple of checks)...
>

When you're starting with optional<UserId> and end with optional<string> then
you practically do a transform, even if you don't call it that.
It's like using standard algorithms instead of raw for loops.

Received on 2020-09-13 05:52:21