3 ms·
Variants... that's a bug in the documentation. Thanks for finding it! I agree about strings. There are basically two strings we use: the string builder and the
by lerno 4y ago
Variants... that's a bug in the documentation. Thanks for finding it!
I agree about strings. There are basically two strings we use: the string builder and the "string data" which is any sort of slice of bytes that can be interpreted as a string. But starting from there are a lot of different ways one can name and implement them. I'm doing some experiments and before those are finished I don't have a strong opinion.
One thing to note though is that C3 does not have RAII or move semantics and so the C++ std::string or similar isn't even an option.
- mst 4y agoIf I have that set of semantics I'll use nim compiled to C with ORC attached. You're aiming for something different, and I appreciate the idea even if I never end up using it. In the unlikely case you haven't already read it about the only time I got C to do what I wanted without just segfaulting everywhere (my mistakes) was using djb's substdio.