STL in std
Paul Anderson
paul.d.anderson.removethis at comcast.andthis.net
Fri Dec 14 14:54:59 PST 2007
Bill Baxter Wrote:
> Paul Anderson wrote:
> > While I appreciate the addition of the Standard Template Library to phobos in 2.008, I have misgivings about the package name(s). Rather than naming them std.algorithm, std.functional, etc., how about stl.algorithm, stl.functional, etc., i.e., STL rather than STD. Or, if the similarity is too confusing, std.stl.algorithm, std.stl.functional,...
> >
> > I know there is an ongoing flat (phobos) vs. hierarchical (Tango) debate, but this seems to me to be a clear case for using a distinct package (or subpackage) name: a group of interrelated modules that are (more or less) independent of other packages.
> >
> > The alternative seems to be an ever-lengthening list of std.betterbeverydescriptive packages.
> >
> > I hope since this is a very recent addition it won't cause a lot of work to rename them in the next release.
> >
> > Anyone else feel the same way?
> >
> > Paul
>
> What's the distinction between std.* and stl.* then? Anything in std.*
> can't have templates in it? That seems like an artificial distinction
> to me. The current way seems fine to me.
>
> --bb
I'm not suggesting that the existence of templates is the distinction. I'm suggesting that a reasonably stand-alone set of modules should not be mixed in higgledy-piggledy with all the rest.
>From the Introduction to the Standard Template Library <http://www.sgi.com/tech/stl/stl_introduction.html>: "The Standard Template Library, or STL, is a C++ library of container classes, algorithms, and iterators; it provides many of the basic algorithms and data structures of computer science."
I'm suggesting this library of classes, algorithms and iterators deserves it's own distinct package. Particularly since it is derived from an existing, well-known library.
Paul
More information about the Digitalmars-d
mailing list