Re: nullablity



On Mon, Oct 5, 2015 at 10:20 PM, Jasper St. Pierre
<jstpierre mecheye net> wrote:
So, there's a few complications here. The first is that our public
APIs tend to have g_return_val_if_fail (..., NULL); even if things
aren't normally null. In that case, what does a binding do? Crash?

If the NULL is only returned in case of an error (wrong usage, no GError, ...)
the bindings could raise an exception pointing to the root cause instead
of silently returning a NULL equivalent.


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