Emmanuele Bassi wrote:
> On Wed, 2009-02-25 at 17:30 +0100, Michal Kolodziejczyk wrote:
>> Hello,
>> would it be possible to make API more consistent?
> 
> it depends on how you define "consistency". :-)

I am aware of this, and hope that others (the authors of other languages
bindings) would share their opinions.

I asked Wolfgang Oertl, the author of lua-gnome bindings, to extend his
project with clutter bindings, and thankfully he did it (and it is quite
usable right now).

> okay, let's try to be consistent:
[...]
> does this look good?

Here is the Wolfgang's answer:

"the proposed function "clutter_color_from_string" is a good idea
from my point of view. The functions that operate on an existing
ClutterColor and write into another are OK how they are, as it already
allows color:method(dest) like calls instead of clutter.method(color,
dest). A language binding might want to provide dest = color:method()
instead, but that would not be an issue of the library, but of the
binding - to detect a missing "dest" argument and then returning a new
object."

BTW, in lua, color:method(dest) is equivalent to color.method(self,
dest), so (when using a colon notation) the first argument is always "self".

Thanks,
        miko
-- 
To unsubscribe send a mail to [email protected]

Reply via email to