[PATCH v3 2/9] parse-time-string: add a date/time parser to notmuch
Tomi Ollila
tomi.ollila at iki.fi
Thu Sep 13 05:48:24 PDT 2012
On Thu, Sep 13 2012, Michal Nazarewicz <mina86 at mina86.com> wrote:
> On Wed, Sep 12 2012, Jani Nikula <jani at nikula.org> wrote:
>> Add a date/time parser to notmuch, to be used for adding date range
>> query support for notmuch lib later on. Add the parser to a directory
>> of its own to make it independent of the rest of the notmuch code
>> base.
>>
>> Signed-off-by: Jani Nikula <jani at nikula.org>
>
> Have you consider doing the same in bison? I consider the code totally
> unreadable and unmaintainable.
Well, I don't find this code 'unreadable', perhaps it depends how you
define it ;)
This functionality has been in 'work-in-progress' for a long time. I think
the interface how this (separate library) is hooked to notmuch is sane.
Also, my 'hunch' is that this is maintainable enough (and Jani will do
all expected 'zero' maintenaince issues that will appear). If, in the
future, there is enough desire for internationalization then Someone(TM)
may see the way to do it.
But, for the time being I applause the hard work Jani has put into
this library and as it is much better what we have now (i.e. nothing)
I am going to start testing this (and drop my current wrapper which
I've been using to search using relative times)...
It might be interesting to see this implemented in Bison but just for
the sake of it I don't think it is worth of it. Maybe, someday...,
Someone Else(tm) does that. The interface should allow to make drop-in
replacement for this parser...
Tomi
>
> --
> Best regards, _ _
> .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o
> ..o | Computer Science, Michał “mina86” Nazarewicz (o o)
> ooo +----<email/xmpp: mpn at google.com>--------------ooO--(_)--Ooo--_______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
More information about the notmuch
mailing list