On Tue, 17 Apr 2007 21:19:52 +0000, Ted Gould <ted@...11...> wrote:
On Tue, 2007-04-17 at 14:49 -0500, Bob Jamison wrote: I'm honestly not to thrilled about this. Any API that we choose here than has to be supported forever. I don't think we want to support the interfaces on those objects for that long.
Agreed.
I don't think we need to expose Repr at all. DOM should be sufficient for that.
We'll need to expose a few basic things, like completing undo transactions -- but obviously such things should be kept to a minimum right now, and that particular example could augment the DOM interface on Document with an additional interface implemented by the DOM document object. Also, we certainly do want SPDocument/undo transactions, not raw repr transactions.
I'm still a touch concerned about loosing SWIG, it means that we loose out on several of the languages that SWIG supports. I would hate to see us have to implement the same interface code to lots of different language interfaces. I don't think we should implement that functionality ourselves.
SWIG for multiple languages means pulling in a lot of (potentially mutually incompatible) runtimes, though. As a practical matter we need to pick either a single language (i.e. Python), or multiple languages on a single runtime (i.e. the JVM). So I don't think I'll mourn SWIG much.
-mental