[XML-SIG] Re: saxlib and enumerations

Paul Prescod papresco@technologist.com
Wed, 18 Mar 1998 09:14:01 -0500

Lars Marius Garshol wrote:
> I think we should try this approach. This problem will reappear in all
> Java/Python integration attempts because of the fundamental
> differences between these two languages. 

I agree!

> Java has enumerators because
> of things that are missing in the language design (parametric types)
> and Python does not have them because they aren't necessary.

Java has enumerators because they are useful, just as C++ has
enumerators (in STL) and Python has "defacto" enumerators (objects that
implement the sequence protocol). The question is just whether the Java
heterogenous enumerator construct is similar enough to the Python
heterogenous sequence protocol to map one into the other the way Jim has
mapped strings.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

"You have the wrong number."
"Eh? Isn't that the Odeon?"
"No, this is the Great Theater of Life. Admission is free, but the 
taxation is mortal. You come when you can, and leave when you must. The 
show is continuous. Good-night." -- Robertson Davies, "The Cunning Man"