News for hackers. Stuff that matters.
Re:Leaving Go by webkike on Monday April 28, 2014 @02:02PM (#7661743)
vector::insert() is certainly not a C idiom. In can never be a C idiom because that is C++ code. the x = append(x, foo) idiom can be seen all over C, most obviously with the use of realloc, which is often called to resize an array via x = realloc(x, newsize).
Re:Leaving Go by mjdwitt on Monday April 28, 2014 @02:18PM (#7661860)
Indeed. Which is why pcwalton is answering Thomas' conjecture about C++'s STL containers.