From: Robert W. B. <rb...@di...> - 2001-11-25 20:27:32
|
Hi S=E9bastien, I didn't see a reply to this, so thought I'd give $0.02. On Tue, 20 Nov 2001, S=E9bastien Pierre wrote: > Hi all, > > I would like to know if it was possible to make jythonc warn the use= r > at compile time when interfaces are not fully implemented by Python > classes. Possible? yes. Likely? no. > For example if I implement the List interface and I forget the > add method, then it would be nice that the compiler warns me that I hav= e > missed something in the source code. Python, and thus Jython, are designed to be dynamic. Your "add" method could appear at runtime, making the compiler check undesirable. Also, remember that Python does not do compile-time protocol checking, an= d Jython is based on Python. When Python adds this, that is when it will b= e pursued for Jython. -robert |