2 ms·
Every other language and framework as in Java, C#, everything Apple, and most popular C++ UI frameworks. Ruby is actually the odd one out with its "string is b
by int_19h 7y ago
Every other language and framework as in Java, C#, everything Apple, and most popular C++ UI frameworks.
Ruby is actually the odd one out with its "string is bytes + encoding" approach; and that mostly because its author is Japanese - Japan is not all sold on Unicode for some legitimate reasons. This approach also has some interesting consequences - e.g. it's possible for string concatenation to fail, because there's no unified representation for both operands.