Re: General Philosophy on PHP-GTK

From: Date: Sun, 21 Oct 2001 19:03:59 +0000
Subject: Re: General Philosophy on PHP-GTK
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-144@lists.php.net to get a copy of this message
At 07:02 PM 10/21/01 +0200, Markus Fischer wrote:
When we convert extension (and even GTK itself), is the goal to get the 100% the same or can we modify methods for convinience? For exmaple, I was thinking about the GtkEditable insert() method. Currently it takes two parameters, string and position. Everywhere else where the insert word is used in context it used to insert data from beginning and separate methods exist to append data to the end. Therefore, changing insert() with only parameter to set position to 0 and introduce GtkEditable::append() . There's no BC problem (because the second parameter to insert() wasn't optional). Comments?
The general philosophy is to try and keep PHP-GTK pretty close to the Gtk+ itself and other language bindings. We simplified methods where we could, but I don't think we should start adding new methods just because it seems appropriate. For one thing, in Gtk2, all .defs files will be autogenerated and the more things we change by hand, the more we'll have to keep in sync in the future. -Andrei

« previous php.gtk.dev (#144) next »