3 ms·
I’ve used Java my entire career. I have seen a custom string type nor a post advocating it in Java.
by MBCook 3y ago
I’ve used Java my entire career. I have seen a custom string type nor a post advocating it in Java.
- dleslie 3y agoNever seen one for C#, either.
- neonsunset 3y agoApologies for the plug haha https://github.com/U8String/U8String https://github.com/U8String/U8String With that said, implementing it is not easy, especially in terms of ensuring it is as fast as built-in string or faster (because the project goal is to be faster than built-in string and Go implementation, and match or outperform Rust's String where applicable). I can't imagine something like that being possible in e.g. Java or most other high-level languages - they simply do not expose appropriate low-level primitives when you need a "proper" string type.
- MBCook 3y agoWell, I see I left the word “not” out which makes this a little more confusing. Oops. It’s supposed to be “I have NOT seen”.