3 ms·
You can't argue that the current C++ syntax is verbose and cumbersome. 99% of the time, I work on the full container, why not providing an overload which let m
by Davidbrcz 9y ago
You can't argue that the current C++ syntax is verbose and cumbersome.
99% of the time, I work on the full container, why not providing an overload which let me write at least
bool batch_failed = std::any_of(jobs,
[](const auto & job) { return job.failed();}
);
Then, lambas are verbose.
I would like to have a simpler syntax like for simple lambas (no capture, single expression in the lamba body). job could be automatically typed with const auto&, or you could write it yourself if you wish.
job => return job.failed();
And a the current one, which is more verbose, for more complex lambas (capture, several expressions in the body)