On Feb 2, 2010, at 3:49 AM, Dag Sverre Seljebotn wrote: > Robert Bradshaw wrote: >> On Feb 2, 2010, at 1:45 AM, Dag Sverre Seljebotn wrote: >> >> >>> What I'm wondering about is whether we can start having namespaces >>> in >>> Cython/Includes. >>> >> >> Yes. >> >> >>> Especially since math is already a module, and I think >>> "c.math" is clearer than inventing "cmath". >>> >>> So I propose: >>> >>> from c.math cimport sqrt, acos, cos, sin, round >>> from c.stdio cimport fopen >>> >>> and so on (though stdlib.pxd and stdio.pxd will be kept in place for >>> backwards compatability). >>> >>> This leaves room for >>> >>> from c99.math cimport ... >>> from cpp.vector cimport ... >>> >> >> or maybe from stl.vector cimport ... would be more natural >> > IIRC, the STL name was deprecated after it was merged into the C++ > standard, it is just part of the "C++ library" without a seperate > name. > References to STL are out of habit and because it started out as a > seperate library. > > Or I remember reading that, but can't find a reference. Since STL is > in > such widespread usage, I'm sure an STL namespace wouldn't hurt.
Or std, as it mirrors the C++ namespace structure, just to throw another option out there. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
