Re: nullablity
- From: Christoph Reiter <reiter christoph gmail com>
- To: "Jasper St. Pierre" <jstpierre mecheye net>
- Cc: gir-devel-list gnome org
- Subject: Re: nullablity
- Date: Mon, 5 Oct 2015 22:49:13 +0200
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]