Re: nullability



There should be also a stated convention whether it's acceptable for a
GError-throwing function to return NULL even if the return value is
not annotated as nullable, in case when the GError is set. Or if the
default for throwing functions should be (nullable). It may even be
considered wrong to _not_ return NULL in this case, as bindings would
have to implement an extra check and possibly a cleanup branch (not
every language is garbage-collected).

On Tue, Oct 6, 2015 at 10:12 AM, Mikhail Zabaluev
<mikhail zabaluev gmail com> wrote:
Nullable callback pointers are fine as well.

That ought to have meant "closure pointers".


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