2 ms·
I'm not sure I would call it a nice syntax. std::initializer_list was a questionable addition to C++ because its syntax clashes with other forms of initializati
by slavik81 9y ago
I'm not sure I would call it a nice syntax. std::initializer_list was a questionable addition to C++ because its syntax clashes with other forms of initialization. It ends up creating special cases and complicating generic code. They fixed some of its problems in C++14, and we might see more improvements in C++20, but the entire idea of that syntax creating a special object feels like a mistake.