4 ms·
I just wish they hadn't repurposed the old "auto" keyword from C and had used a new keyword like "var" or "let". #define var auto #define let auto
by musicale 2y ago
I just wish they hadn't repurposed the old "auto" keyword from C and had used a new keyword like "var" or "let".
#define var auto
#define let auto
- deleted 2y ago[deleted]
- galkk 2y agoIf we're going that route, how about #define var auto #define let const auto ?
- musicale 2y agoI was thinking of having one or the other, but let as the const form is appealing. ;-)
- maleldil 2y agoGiven how important backwards compatibility is for C++, it's either take over a basically unused keyword or come up with something so weird that would never appear in existing code. Java solved this by making var a reserved type, not a keyword, but I don't know if that's feasible for C++.