Posted Nov 18, 2010 16:14 UTC (Thu) by pr1268
In reply to: Null-Terminated Strings
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.
to post comments)