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

C++

2101 readers
1 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 4 days 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

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