Null-Terminated Strings
Posted Nov 17, 2010 3:23 UTC (Wed) by
pr1268 (subscriber, #24648)
In reply to:
Null-Terminated Strings by ldo
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.
(
Log in to post comments)