News for hackers. Stuff that matters.
Re:C++ Internals: STL Vector, Part 3 by nadams on Sunday August 09, 2015 @08:01PM (#10032015)
> And just a few lines below that: "for (auto item : { 1, 2, 3, 4, 5, 6, 7, 8, 9 })". Why?? It's an almost comical abuse of C++11 for the sake of it.

This comment is very interesting. His syntax reminds me of Python syntax of:

    for i in [1,2,3]:
Isn't that what the future C++ is trying to achieve? Simplified syntax?
Re:C++ Internals: STL Vector, Part 3 by srean on Sunday August 09, 2015 @08:51PM (#10032163)
> Isn't that what the future C++ is trying to achieve? Simplified syntax?

I think your question was rhetorical, in any case the answer is yes. In fact the proposed C++ pythy syntax tries go even further http://pfultz2.github.io/Pythy/ . IIRC its Clang only. Its author hangs out on HN sometimes and would be able to provide more information

Re:C++ Internals: STL Vector, Part 3 by detrino on Sunday August 09, 2015 @08:20PM (#10032063)
It's worse in every way to:

    for (int i = 1; i != 10; ++i)
Re:C++ Internals: STL Vector, Part 3 by andrepd on Monday August 10, 2015 @11:32AM (#10035233)
Even in that example, wouldn't it be better to simply write

    for i in range(1,4):