Öö Tiib <
oot...@hot.ee> wrote:
> The initializer_list was IMHO worst thing of C++11 by large margin.
You sure? I'd say that the uniform initialization causes more problems than
initializer lists.
Initializer lists are cool because you can initialize objects in the same
way as you would a C style array, using a simple syntax.
I see less use for uniform initialization, especially since its syntax
gets messed up with initializer list syntax (even though semantically
they are quite different things!) Sure, sometimes it saves you a bit
of writing, but is it really worth it?
Uniform initialization might be better if it used a syntax that's
different from initializer lists and thus avoided ambiguity with them.
(OTOH, I guess initializer lists *are* part of the concept of "uniform
initialization", and that's the reason why both use the same syntax...)