Re: [PATCH v3 6/9] lib: add date range query support

Subject: Re: [PATCH v3 6/9] lib: add date range query support

Date: Mon, 17 Sep 2012 13:10:50 -0300

To: Michal Nazarewicz, notmuch@notmuchmail.org

Cc:

From: David Bremner


Michal Nazarewicz <mina86@mina86.com> 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 “+ 1 day” 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

Thread: