Suggestion - use local imports in Phobos

Jacob Carlborg doob at me.com
Wed Jun 5 00:11:21 PDT 2013


On 2013-06-05 00:43, Andrei Alexandrescu wrote:

> One question would be where the right balance is, and how to make sure
> we strike it.

Yes, exactly. The duplication in Tango is usually some minor array 
function or trait which is used internally by the module. Usually it's 
just enough for what the module needs and not necessarily a direct copy 
of some other function.

Example, the tango.net.http.HttpCookies module contains a toLower 
function for ASCII. That's a small utility function, just four lines long.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list