Re: [PATCH 1/7] go: Use iota in enum bindings

Subject: Re: [PATCH 1/7] go: Use iota in enum bindings

Date: Wed, 18 Jul 2012 22:36:48 +0200

To: Austin Clements, Adrien Bustany

Cc: notmuch@notmuchmail.org

From: Sebastien Binet


Austin Clements <amdragon@MIT.EDU> writes:

> Hah.  I guess nobody has tried to modify a notmuch database using the
> Go bindings.
>
> Could this instead assign the constants to
> C.NOTMUCH_DATABASE_MODE_READ_ONLY, etc, rather than duplicating their
> values?  It would be nice to do that for the Status values as well
> (which are correctly using iota, at least).

yep.
I have a few fixes like that in my repo:
https://github.com/sbinet/notmuch/commits/dev/go-bindings/bindings/go/src/notmuch

https://github.com/sbinet/notmuch/commit/38713de1b90a29b66b2a7f310065a3ffcf527d9b#L1L88

-s
part-000.sig (application/pgp-signature)

Thread: