Initialization in C++ is bonkers (2017)

34 todsacerdoti 4 5/15/2025, 9:27:10 PM blog.tartanllama.xyz ↗

Comments (4)

ts4z · 2m ago
This is a specialization of the general statement that C++ is bonkers.
nlehuen · 16m ago
Not to worry, there is a 278 page book about initialization in C++!

https://leanpub.com/cppinitbook

(I don't know whether it's good or not, I just find it fascinating that it exists)

nitrogen99 · 2m ago
Well, authors are incentivized into writing long books. Having said that it obviously doesn't take away the fact that C++ init is indeed bonkers.
gnabgib · 43m ago
Small discussion at the time (42 points, 6 comments) https://news.ycombinator.com/item?id=14532478

Related: Initialization in C++ is Seriously Bonkers (166 points, 2019, 126 points) https://news.ycombinator.com/item?id=18832311