Which language has the best string implementation(if any)?

Which language has the best string implementation(if any)?

Attached: 1615787135458.png (492x428, 139.15K)

C++

Perl

Go

Golang

it depends

anything not C

Unironically Java

not C punks fuck off

ngmi

Rust.

>Differentiate between owned strings (located on the heap) and string references (can be anywhere!)
>One set of string types for working within the Rust ecosystem (Str, String)
>One set of string types for working with the OS' ecosystem (OsStr, OsString)
>One set of string types for working with FFIs that expect C strings (CStr, CString)
>Always handles unicode issues for you

common lisp because you can use the same methods for simple arrays, vectors, strings and lists

an obscure, yet complex interface. who could ask for more?

That just shows that programers have no idea of what they are doing.
You guys cant even be consistent responding to a simple question

based and seconded

Go

Complexity exists for complex tasks. Different operating systems use different representations of strings when communicating through system calls. Windows expects unicode strings to be UTF-16, while Linux doesn't know what unicode is. Meanwhile, all C libraries expect strings to be null terminated ASCII strings. If you want to communicate through different interfaces, you need different string types.

So which of these do we use for our own string types? None of them. The only string representation that has ever made sense is and always has been UTF-8. So we use that for all normal strings in Rust and for everything else, we talk through their respective interfaces.

>There is only one kind of programmer making one kind of application

What do you mean by "best implementation" ?
Best internal data structure?
Best string functions?
Unicode support?

Elixir is pretty comphy

Excel
Prove me wrong

My own