If you got to remove one feature from #cplusplus, what would it be?
For me, comma operator.
-
-
Vastauksena käyttäjälle @tloch14
Shafik Yaghmour uudelleentwiittasi Shafik Yaghmour
Shafik Yaghmour lisäsi,
3 vastausta 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @shafikyaghmour
Interesting. I don’t think initializer_list has ever caused me grief. It’s easy to ignore and rarely causes odd ball bugs. Why do people want it removed?
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @tloch14
Shafik Yaghmour uudelleentwiittasi Shafik Yaghmour
Its in the thread I referenced:https://twitter.com/shafikyaghmour/status/1058386105974775809 …
Shafik Yaghmour lisäsi,
Shafik Yaghmour @shafikyaghmourIt makes it easy to create dangling references https://stackoverflow.com/a/28323698/1708801 … and it has all sort of non-intuitive interactions with uniform initialization such as this change after C++11 https://stackoverflow.com/a/31301568/1708801 … pic.twitter.com/oz0RoQTDNt1 vastaus 0 uudelleentwiittausta 2 tykkäystä
Pointers and references have the same problem, but nobody is asking for them to be removed. The issues with uniform init is more compelling. initializer_list just doesn't get in my way enough to be worth removing (but I don't use stl containers)
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.
Also your turn w/ poll