4 ms·
Sure. But there are a lot of areas where you just shrug and say "here be dragons" and move on. For example, consider the new for loop syntax for (auto item:
by cjensen 7y ago
Sure. But there are a lot of areas where you just shrug and say "here be dragons" and move on.
For example, consider the new for loop syntax
for (auto item: a().b().c()) ...
Does this make you nervous? It should. In the above, suppose a(), b(), and c() are all returning objects. Which of these objects remains valid until the end of the for loop? And this is a dragon in one of the most helpful parts of new C++.
- mateuszf 7y agoYeah, I'm not a big fan of the language, I'm only saying it's used a lot. Seems that in this case there was not a lot of portable fast alternatives for system / device / high performance programming.