Null-Terminated Strings
Null-Terminated Strings
Posted Nov 18, 2010 16:14 UTC (Thu) by pr1268 (guest, #24648)In reply to: Null-Terminated Strings by Kwi
Parent article: Ghosts of Unix past, part 3: Unfixable designs
> (Incidentally, Java strings work the same way behind the scenes, but are immutable, which I guess is what you object to when you call them inefficient?)
Exactly. And, my semi-rhetorical question immediately after that ("is there a better way?") begs the question of whether the Sun engineers who developed the Java language imposed that immutability for thread safety (since thread safety was/is a primary goal of the Java language). I don't know for sure; just going off intuition here.
Posted Nov 19, 2010 10:07 UTC (Fri)
by mfedyk (guest, #55303)
[Link]
Null-Terminated Strings
