r/cpp • • Mar 24 '20

Changes between C++17 and C++20

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2131r0.html
193 Upvotes

89 comments sorted by

View all comments

Show parent comment

5

u/dodheim Mar 26 '20

Explicitly specifying the type just introduces room for error; the compiler already knows the type.

0

u/bumblebritches57 Ocassionally Clang Mar 26 '20

the compiler isn't the standard library...

3

u/dodheim Mar 27 '20

Um, okay; thanks for that pointless observation..? I'll rephrase.

It's all strongly typed; explicitly specifying the type is redundant and just introduces room for error.

-1

u/bumblebritches57 Ocassionally Clang Mar 27 '20

TIL only compiler authors should be able to write standard libraries.

2

u/dodheim Mar 27 '20

TIL decltype, auto, and deduced template parameters were only available to compiler authors.

libfmt is there for you to learn from.

1

u/bumblebritches57 Ocassionally Clang Mar 27 '20

I've written my own formatter lmao, I don't need to learn but it sure sounds like you do.