by uecker · 1w ago · 0 comments
int x = 1;
foo(x);
// What values has x?
In C the answer is obvious, in C++ due to the existence of references and the poor way they are designed, it is not anymore.Considering that every other "C family" language community gets by just fine with call sites that look like using references, I think calling this element of references "poorly designed" is quite a stretch.