https://issues.dlang.org/show_bug.cgi?id=13717

--- Comment #12 from [email protected] ---
Here's a crazy idea: what if we introduce template wrappers for these
functions, so that the import only happens if the user code actually references
those symbols? For example:

-----
// std.string
auto split(Char1,Char2)(const(Char1) s, const(Char2) t) {
    import std.array : split;
    return split(s, t);
}
-----

So while we can't get rid of the dependency, at least users who don't need it,
won't need to pay for it.

--

Reply via email to