Re: GObject-Introspection 0.5.0



[trimming the mad CC list]

On Mon, 2008-09-08 at 07:42 +0200, Mikkel Kamstrup Erlandsen wrote:

> >>> typedef enum {
> >>>    GI_OWNERSHIP_CALLER, /* caller owns it, caller should free it after use */
> >>>    GI_OWNERSHIP_CALLEE  /* callee owns it, caller should leave it as it is */
> >>> } GITypeOwnership;
> >>
> >> Just as a nitpick, these two names look very similar and quite confusing
> >> for non-native English speakers.  Maybe you could come up with something
> >> different, especially in place of 'callee'?
> >
> > It's actually commonly-used terminology, e.g. "caller-save registers"
> > vs. "callee-save registers" in compilers.
> 
> With all due respect I am not sure compiler-writers are the main
> audience of GObject Introspection. I for one find the terminology a
> bit confusing too.

I am neither a native english speaker nor a compiler writer but callee
vs caller is pretty standard terminology. None of the proposed
alternatives look any better and they all fail the "standard
terminology" test. When I started programming, my english language
vocabulary quickly expanded to include such terms. It seems pretty
reasonable to expect new programmers/non native english speakers go
through the same kind of learning. Such is life for those not blessed
with being born in the right country...

Mathieu



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