GotW #1: Variable Initialization—or Is It? -- Herb Sutter
Herb Sutter is resuming his Guru of the Week series of problem-and-solution articles about coding in C++, with the intent to gradually update the 88 existing issues and write a few more along the way.
The first problem was posted today:
GotW #1: Variable Initialization -- or Is It? (3/10)
by Herb Sutter
This first problem highlights the importance of understanding what you write. Here we have a few simple lines of code — most of which mean something different from all the others, even though the syntax varies only slightly.
The solution is coming "soon"...


If you're familiar with functional language styles and you want an advanced look at how your favorite functional styles are supported in modern C++, with a dash of Haskell, check out these three videos by Bartosz Milewski: