5 ms·
The primary reason for the separate string type is to interop better with the various backends. The default C backend appends an extra null termination to ease
by elcritch 2y ago
The primary reason for the separate string type is to interop better with the various backends. The default C backend appends an extra null termination to ease C compatibility.
- big-green-man 2y agoYeah I think I looked into it and read something like that, I guess when your primary goal is interoperability with already built systems you've got to make trade offs like that and they'll show through in the experience, but it doesn't change the fact that nim feels a little incoherent when you're trying to learn it. It's fine though, I like nim a lot and the value in the language significantly outweighs the downsides to learning those little quirks.