Re: Function completion for GVariant maybe types?
- From: Simon McVittie <simon mcvittie collabora co uk>
- To: Markus Elfring <Markus Elfring web de>
- Cc: Ryan Lortie <desrt desrt ca>, gtk-devel-list gnome org
- Subject: Re: Function completion for GVariant maybe types?
- Date: Wed, 4 Jan 2012 12:28:40 +0000
On Sat, 31 Dec 2011 at 17:22:57 +0100, Markus Elfring wrote:
> > - if the maybe contains a value, return the NULL of the same type
>
> Would you like to give the clarification of this open issue another try?
>
> How do you think about extensions for the support of nullable data
> types around the function "g_variant_new_maybe"?
It seems that the "open issue" is: you think a new function is needed;
Ryan thinks the current API is sufficient and there is no problem. This seems
to be basically "a matter of taste" so without a compelling reason to add
more API, the maintainer's opinion (i.e. Ryan's) will tend to win.
I'm inclined to agree with Ryan, tbh - I don't see that there's any need
for more functions here. In a well-designed D-Bus API (or any of the other
common uses I see for GVariant, like serialization) you already know at
compile-time what type you're using, so you can just mention the type
signature (or GVariantType in GLib jargon) in your source code.
S
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]