fenfire-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fenfire-dev] Why (Java) interfaces matter


From: Matti Katila
Subject: Re: [Fenfire-dev] Why (Java) interfaces matter
Date: Fri, 9 Sep 2005 23:22:32 +0300 (EEST)

On Fri, 9 Sep 2005, Benja Fallenstein wrote:
> Python doesn't, currently, have interfaces (although Guido van Rossum

> Still, after having developed a lot in Java, when I went to code some
> stuff in Python I noticed I was really missing interfaces, even though
> I usually love Python and hate Java because it makes me type all that
> unnecessary code, unlike Py. So how come I was missing interfaces?

Yeah, you wrote a lot of thoughts and just to point some things that I
have been thinking:

- When you write an interface it would be nice to have a tool to create
stubs for a class. This is actually already implemented in eclipse for
example by providing fix tool which uses java's reflection api to find
out all needed methods. This is a direction like interface -> class.

- The other way around is also useful I think. In case that you were
proptotyping/hacking your code and then want it to stabilize more.
The programmer should be able to select methods and create an
interface for them, i.e., the direction would be like class -> interface.


   -Matti




reply via email to

[Prev in Thread] Current Thread [Next in Thread]