From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 99939431FAE for ; Wed, 9 Dec 2009 14:21:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EeggJlupw1rM for ; Wed, 9 Dec 2009 14:21:10 -0800 (PST) Received: from flatline.sindominio.net (flatline.sindominio.net [82.144.4.26]) by olra.theworths.org (Postfix) with ESMTP id 669B0431FBC for ; Wed, 9 Dec 2009 14:21:10 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id EB40E262A7C; Wed, 9 Dec 2009 23:21:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sindominio.net Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fyjj7kfinbo6; Wed, 9 Dec 2009 23:21:06 +0100 (CET) Received: from blackspot (heal.cauterized.net [62.101.176.164]) by flatline.sindominio.net (Postfix) with ESMTPA id B816C262A0A; Wed, 9 Dec 2009 23:21:03 +0100 (CET) Received: by blackspot (Postfix, from userid 1000) id 845468BC30; Wed, 9 Dec 2009 23:01:33 +0100 (CET) Date: Wed, 9 Dec 2009 23:01:33 +0100 From: Ruben Pollan To: Carl Worth Message-ID: <20091209220133.GA10685@blackspot> References: <20091126202347.GA16654@blackspot> <1260364206-344-1-git-send-email-meskio@sindominio.net> <20091209132446.GC23878@blackspot> <877hsv6hbo.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <877hsv6hbo.fsf@yoom.home.cworth.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: notmuch@notmuchmail.org Subject: Re: [PATCH] Added regress option to tags iterator X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2009 22:21:11 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 12:08, Wed 09 Dec 09, Carl Worth wrote: > On Wed, 9 Dec 2009 14:24:46 +0100, Ruben Pollan w= rote: > > Do you like to call them regress? Should I change that? >=20 > I don't love the name, (since it's so close to the word "regression" > which has a totally different meaning in software context). But I also > don't have an immediate suggestion for an improved name yet either. Me neither, but as I don't have any better idea I just use regress. But we = can try to come up with something better. >=20 > > What about the functions notmuch_*_is_first? Is kind of reversed logic = than > > notmuch_*_has_more, the last are true when is not reach the limit but t= he > > first ones are true when the limit is reached. But I think it make sens= e like > > that. >=20 > I'd like a more symmetric API here. Anyone have a favorite set of names > for iterating a list in two directions? Yes, but actually are a bit different somehow. When you advance the last iterator you can reach is a non-valid (outside the list) iterator. When you 'regress' the iterator at the end is a valid iterator, I don't see the need= on get outside of the list like with advance. So, maybe because of it have sense the functions notmuch_*_is_first. Anyway= I really don't mind, one or other. To change it is trivial. It's harder to fi= nd a good pair of names. --=20 Rub=E9n Poll=E1n | jabber:meskio@jabber.org -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D- La felicidad no es hacer lo que deseas es desear lo que haces. --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAksgHj0ACgkQGKOQ92SwNMIFZACdF5StCNoCOVd3n9I57tIUoMeU DDQAoIhqZ5pwmAnBjvi0Z4q73w1okU+0 =7Jpt -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--