unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Carl Worth <cworth@cworth.org>,
	notmuch mailing list <notmuch@notmuchmail.org>
Subject: Re: NOTMUCH_STATUS_LAST_STATUS problematic across additive library upgrades
Date: Tue, 08 Dec 2015 10:55:25 -0500	[thread overview]
Message-ID: <87fuzdoryq.fsf@alice.fifthhorseman.net> (raw)
In-Reply-To: <87bna1ms58.fsf@wondoo.home.cworth.org>

On Tue 2015-12-08 00:22:11 -0500, Carl Worth wrote:
> On Mon, Dec 07 2015, Daniel Kahn Gillmor wrote:
>> I note that it's exposed in the go bindings -- maybe it shouldn't be
>> exposed in any of the bindings that can avoid exposing it?
>
> Quite likely. It's only there in C because there's no other way to know
> the bounds for iterating over all possible values for a particular
> enum. If other languages don't have this deficiency, then they shouldn't
> need this silly thing.

OK, so maybe the following patch should be applied.  Perhaps someone who
understands the go bindings better than i do can comment on it?

The python bindings don't seem to include LAST_STATUS, so i think
they're OK.

        --dkg

diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go
index 0fff1ab..9f910cb 100644
--- a/bindings/go/src/notmuch/notmuch.go
+++ b/bindings/go/src/notmuch/notmuch.go
@@ -28,8 +28,6 @@ const (
 	STATUS_TAG_TOO_LONG
 	STATUS_UNBALANCED_FREEZE_THAW
 	STATUS_UNBALANCED_ATOMIC
-
-	STATUS_LAST_STATUS
 )
 
 func (self Status) String() string {

      reply	other threads:[~2015-12-08 15:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 22:54 NOTMUCH_STATUS_LAST_STATUS problematic across additive library upgrades Daniel Kahn Gillmor
2015-12-07 23:37 ` Carl Worth
2015-12-08  0:19   ` Daniel Kahn Gillmor
2015-12-08  5:22     ` Carl Worth
2015-12-08 15:55       ` Daniel Kahn Gillmor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fuzdoryq.fsf@alice.fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=cworth@cworth.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).