Conversation

Python took that same multiple string representation approach and browsers did the same for JavaScript. The strings are always fixed size units in Java / JavaScript / Python and they bloat themselves up to a larger unit if you add a single character from the range requiring it.
2
Replying to and
That's so obviously a bad approach and buys you nothing of value. It's so baffling to me that everyone bought into the idea that "indexing nth character" was a meaningful operation for strings and designed everything (badly) around that.
2
1
Show replies