Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Sucks

Name: Anonymous 2007-09-10 14:45 ID:qfe8pgUF

C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do *nothing* but keep the C++ programmers out, that in itself would be a huge reason to use C.

Name: Anonymous 2007-09-11 17:45 ID:ZzLsQ6aJ

I'd make strings prefixed with allocated length and used length, and automatic logarithmic reallocation.

Slightly OT, but why not just the length? Easier to append stuff because the string is essentially open-ended and you only need to change the first 1, 2 or 4 bytes indicating the length.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List