couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: eep0018 and spidermonkey 1.8.1
Date Mon, 18 May 2009 08:16:27 GMT
On Sun, May 17, 2009 at 09:01:34PM -0400, Paul Davis wrote:
> The specific bits are
> that when you emit(undefined, undefined) it now actually works and the
> key/value pair null, null is emitted.

That would be useful behaviour in any case. Right now I end up writing

    emit(doc.foo||null, doc.bar||null);

but you have to be careful with that as a pattern - e.g. if doc.foo is an
empty string then null gets emitted instead.

Mime
View raw message