3 ms·
Yeah, same here, a president of a local Duff's decice fanclub, but you have to admit that proposed C++ 17 feature is pretty nice: ... foo() { r
by eps 11y ago
Yeah, same here, a president of a local Duff's decice fanclub, but you have to admit that proposed C++ 17 feature is pretty nice:
... foo()
{
return { 1, "bar", false };
}
auto { i, s, b } = foo();
It's a syntax sugar, granted, and they could push it further by adopting tuples as a native language construct with some shorthand notation (e.g. [...]), but the idea is nice.
- stinos 11y agoEspecially when being used to Python this would be a very welcome addition
- tdsamardzhiev 11y agoSweet! Although I still cannot believe it took C++ like 30 years to come up with this.