Posted Nov 17, 2010 3:23 UTC (Wed) by pr1268
In reply to: Null-Terminated Strings
Parent article: Ghosts of Unix past, part 3: Unfixable designs
Do you have a better suggestion? Pascal-style strings?
While I agree that C-style strings are bothersome at times, there just doesn't seem to be any better alternative. And never mind that Java's Strings are hideously inefficient (but again, is there a better way?).
I don't mean to argue; I'm just playing devil's advocate here. I honestly don't know myself whether there could have been a better way to do character strings way back in the day.
to post comments)