2 ms·
Regarding the string type in Zig, in case some people are interested by this you can read those two threads from the Zig github repository to understand a bit b
by dgellow 6y ago
Regarding the string type in Zig, in case some people are interested by this you can read those two threads from the Zig github repository to understand a bit better previous discussions (I would recommend reading them, they are both interesting):
-------
"Improved handling of strings and unicode", https://github.com/ziglang/zig/issues/234 https://github.com/ziglang/zig/issues/234
Andrew answer:
> I'm not convinced that this is a language change rather than a standard library feature.
(source https://github.com/ziglang/zig/issues/234#issuecomment-289273347 https://github.com/ziglang/zig/issues/234#issuecomment-28927...)
-------
"Proposal: Add String to the type system", https://github.com/ziglang/zig/issues/7734 https://github.com/ziglang/zig/issues/7734
Andre answer:
> We won't have a string type in the language.
> OP problem can be solved with a better std.fmt.format API which better communicates intent. This is a deficiency of the std lib, not the language
(source https://github.com/ziglang/zig/issues/7734#issuecomment-758167124 https://github.com/ziglang/zig/issues/7734#issuecomment-7581...)