initializer-list is ambiguous. The current tag wiki says that the tag should be used for C++11 std::initializer_list
, which is a specialized feature. It has been like that pretty much since tag creation, but the tag is used for all manner of other questions.
In particular, both C and C++ has a formal syntax item called initializer-list, which is the most common use of the term both in general and in terms of C++. This actually looks like the most common use of this tag on SO as well.
I propose the following:
- Create a separate tag std-initializer-list for the purpose of C++
std::initializer_list
questions only. Move the current tag wiki to this tag. Tag usage: must combine with c++, recommended to use c++11 or later. - Re-tag all current
std::initializer_list
questions to use the new tag. - Change the meaning of
initializer-list
to refer to the syntax item initializer list both in C and C++. I can write a new tag wiki for this. Tag usage: must use either c or c++.
I can fix this myself, but I wish to poke the community for feedback before I go ahead.
We have 1128 questions using the tag, out of which 29 questions are neither tagged C, C++ nor C++11. Are there other languages where this is a formal term? I see a few Javascript, Python and C# questions with the tag. Are they using the tag incorrectly?
std::initializer_list
's really special enough to deserve a distinct tag?