Idea: Introduce zero-terminated string specifier
Walter Bright
newshound1 at digitalmars.com
Tue Oct 2 01:09:43 PDT 2012
On 10/1/2012 7:22 PM, Steven Schveighoffer wrote:
> However, we can't require an import to use a bizarre
> specifier, and you can't link un at safe code to a specifier, so the zstr
> concept is far superior in requiring the user to know what he is doing,
> and having the compiler enforce that.
Yup.
> Does it make sense for Phobos to provide such a shortcut in an obscure
> header somewhere? Like std.cstring? Or should we just say "roll your own
> if you need it"?
As a matter of principle, I really don't like gobs of Phobos functions
that are literally one liners. Phobos should not become a mile wide but
inch deep library of trivia. It should consist of non-trivial, useful,
and relatively deep functions.
More information about the Digitalmars-d
mailing list