A Standard
Erik Max Francis
max at alcyone.com
Sun May 25 19:18:16 EDT 2003
> Luis Cortes wrote:
> I have long been playing the idea ( and I'm sure that others have
> too -- of
> porting the STL library from C++ completely re-written in python. I
> have had great success in doing this with the the vector class with
> little
> problem (although it did take me several iterations). I believe it
> would be trivial to finish the rest of the lib. My question would
> be,
> won't this be better than making our own version of set, list,
> vector,
> map, etc.???
Well, Python 2.3 comes with builtin sets, lists, and maps (called
dictionaries), so right out of the gate you're considering duplicating
things. If, as you say, reimplementing C++SL-like constructs in Python
is "trivial" (which is probably not a huge exaggeration, since Python
comes with the intrusive parts already built in), what is the benefit in
doing so?
> This way, won't C++ programmers have an easier time crossing over?
Perhaps, but I don't think that's a very strong motivation for adding
something to Python.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ Without love, benevolence becomes egotism.
\__/ Dr. Martin Luther King, Jr.
More information about the Python-list
mailing list