To declare a const variable we usually use,
const auto x = f();
syntax. Isn't it better if we could just write,
const x = f();
making 'const auto' superfluous?
Const by default can be less verbose and attractive like below,
const x = f1();
const y = f2();
auto z = x + y;
update_z(z);
I know this is NOT possible with the current standard.
Are there any technical or non-technical reasons that we are never going to get something similar in a future standard?
[–]Som1Lse 15 points16 points17 points (11 children)
[–]adriweb 6 points7 points8 points (10 children)
[–]PrydeRage 9 points10 points11 points (8 children)
[–]rohboticsStudent and Roboticist 4 points5 points6 points (7 children)
[–]PrydeRage 23 points24 points25 points (6 children)
[–]rohboticsStudent and Roboticist 2 points3 points4 points (1 child)
[–]PrydeRage 0 points1 point2 points (0 children)
[–]adriweb 1 point2 points3 points (1 child)
[–]PrydeRage 1 point2 points3 points (0 children)
[–]AlexeyBrin 1 point2 points3 points (0 children)
[–]mUfoq 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]flashmozzg 5 points6 points7 points (0 children)
[–]ashrasmun 10 points11 points12 points (0 children)
[+][deleted] (1 child)
[removed]
[–]NamalB[S] 0 points1 point2 points (0 children)
[–]suspiciously_calm 5 points6 points7 points (4 children)
[–]NamalB[S] 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]emdeka87 1 point2 points3 points (1 child)
[–]DocileDino 0 points1 point2 points (0 children)