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: | Haven |
|---|---|
| Location: | Ontario, Canada |
| Users: | 4 |
| Nodes: | 4 (1 / 3) |
| Uptime: | 01:04:55 |
| Calls: | 41 |
| Calls today: | 3 |
| Files: | 27 |
| D/L today: |
4 files (16,992K bytes) |
| Messages: | 9,001 |