auto seems SUPER compelling and looks like it might take some of the drudgework out of using C++, at least for whimps like me who generally reach for gc languages like Python first.
I knew C++ pretty well in the 90s. Hopefully one of these days I can dust off those neurons and enjoy some of the newer features that have come along since I last checked.
Re: Re: C++20+
By: feoh to All on Fri Feb 06 2026 06:04 pm
auto seems SUPER compelling and looks like it might take some of the drudgework out of using C++, at least for whimps like me who generally reach for gc languages like Python first.
I knew C++ pretty well in the 90s. Hopefully one of these days I can dust off those neurons and enjoy some of the newer features that have come along since I last checked.
The 'auto' keyword has been around in C++ since 2011 (added to the C++11 standard).
The 'auto' keyword has been around in C++ since 2011 (added to the C++11
standard).
The 'auto' keyword actually dates back to the pre-standard (i.e. 1978) C Programming language. It was a storage class modifier (the opposite meaning of 'static' when declaring a function-local variable). Since 'auto' was the default storage class, you didn't see it used much at all in C. So it was kind of safe to reuse for a different purporse in C++ and now the newest version of C (2023?) has a similar (but not identical) repurposing of the 'auto' keyword as how its used in C++.
| Sysop: | MSGRetired |
|---|---|
| Location: | Oxford, MA |
| Users: | 2 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 11:27:15 |
| Calls: | 0 |
| Files: | 10,599 |
| D/L today: |
155 files (32,228K bytes) |
| Messages: | 4,950 |
| Posted today: | 2 |