|
|
|
|
|
by razakel
3471 days ago
|
|
>Just curious, is a Go string a C string inside (rune array + nil) or a proper class array? I can't imagine how you would even implement a string as anything other than a rune array. Even a Pascal string is just the string length followed by characters. |
|
You can also implement strings using a tree data structure. We do this in an implementation of Ruby that I work on because it can make concatenation faster.