Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 72FE4431FAF for ; Mon, 17 Sep 2012 09:10:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 156WB7W835uZ for ; Mon, 17 Sep 2012 09:10:57 -0700 (PDT) Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id BC1F8431FAE for ; Mon, 17 Sep 2012 09:10:57 -0700 (PDT) Received: from convex-new.cs.unb.ca ([131.202.245.35]) by tesseract.cs.unb.ca with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TDduS-00048n-5j; Mon, 17 Sep 2012 13:10:56 -0300 Received: from bremner by convex-new.cs.unb.ca with local (Exim 4.80) (envelope-from ) id 1TDduM-0002tm-Ps; Mon, 17 Sep 2012 13:10:50 -0300 From: David Bremner To: Michal Nazarewicz , notmuch@notmuchmail.org Subject: Re: [PATCH v3 6/9] lib: add date range query support In-Reply-To: References: <532340d05ea748518c021048900bb83149e04e88.1347484177.git.jani@nikula.org> <878vce5cip.fsf@zancas.localnet> User-Agent: Notmuch/0.14+20~g69843dd (http://notmuchmail.org) Emacs/24.2.1 (x86_64-pc-linux-gnu) Date: Mon, 17 Sep 2012 13:10:50 -0300 Message-ID: <87obl4fx4l.fsf@convex-new.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam_bar: - X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Mon, 17 Sep 2012 16:10:58 -0000 Michal Nazarewicz writes: > On Thu, Sep 13 2012, David Bremner wrote: >> I don't find ranges being half-open by default to be very >> intuitive. Perhaps I don't program in python enough. [snip] > date:2012/01/01..2012/01/01 + 1 day > > in my opinion, that should give results from the first of January only, > since =E2=80=9C+ 1 day=E2=80=9D indicates in a way how long user want the= period to be. Sorry, still not convinced. My comment about python was more or less a joke; I get the analogy with C, but (1) I don't think C is a reasonable UI guide, and (2), at least in the C case, the half openness of the range is explicitly given by the operators used. d