[PATCH wayland] server: Make serial number 0 mean invalid

Bill Spitzak spitzak at gmail.com
Wed Sep 30 10:45:55 PDT 2015


On Wed, Sep 30, 2015 at 9:45 AM, Derek Foreman <derekf at osg.samsung.com>
wrote:

>
> So you're in favour of not bothering to give a helper function in
> libwayland, and just expecting everyone to do their own thing?
>

I think so. Programmers want to know that it is a number, and not possibly
some complex type that is expensive to store or copy. Adding helper
functions hides this sort of information. It also gives strongly-typed
languages a way to be inconsistent, some might think the serial should be a
special type (so you can't pass a non-serial to the compare function),
while others will think it better to let the user know it is a number.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150930/2018aed6/attachment-0001.html>


More information about the wayland-devel mailing list