improving the join function

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Oct 11 20:15:42 PDT 2010


On 10/11/2010 08:57 PM, Daniel Gibson wrote:
> But right now the point is: join() does something completely different
> and should be renamed (or deprecated in std.string and replaced by
> union() - a real join isn't needed in std.string anyway, but when join()
> is deprecated in std.string you can implement a real join in
> std.algorithm without causing too much confusion).

I think union() is a worse name than join(). The discussion was to 
generalize within reason std.string.join, which is present under that 
name and with that functionality in many other languages and libraries.

Andrei


More information about the Digitalmars-d mailing list