this post was submitted on 02 Sep 2025
17 points (100.0% liked)

C++

2209 readers
8 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] DapperPenguin@programming.dev 3 points 5 months ago (1 children)

From my discussion with C++ folk, auto is just part of the "modern" way of doing c++. Paired with the -> return type. Perhaps including that -> return type negates this problem? It's still strange to me. Feels more like Rust

[โ€“] bitcrafter@programming.dev 2 points 5 months ago

One day the use of auto will grow so extensive that modern Python code will have more type annotations than modern C++ code!