Paul, I'd love to give some JavaScript 1.8 features a test drive in my view code! Let's see how it goes...
Thanks, Zach On Mon, May 18, 2009 at 3:16 AM, Brian Candler <[email protected]> wrote: > 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. >
