3 ms·
A nice, related meme: https://mikelui.io/img/c++_init_forest.gif https://mikelui.io/img/c++_init_forest.gif
by mihaaly 3y ago
A nice, related meme:
https://mikelui.io/img/c++_init_forest.gif https://mikelui.io/img/c++_init_forest.gif
- tialaramex 3y agoAnd on that subject https://leanpub.com/cppinitbook https://leanpub.com/cppinitbook - a book just about initialization in C++ which is in some sense (more pages) longer than my edition of K&R ("The C Programming Language"). Despite all this complexity, C++ 23 has problems with mistakenly uninitialized variables and still lacks a coherent strategy to do deferred initialization correctly.
- classified 3y agoThat GIF should mention the relevant C++ standard, because next year there will be at least one more additional way to initialize.