couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noah Slater <nsla...@apache.org>
Subject Re: null
Date Thu, 08 Jan 2009 13:26:39 GMT
On Thu, Jan 08, 2009 at 02:21:27PM +0100, Sven Helmberger wrote:
> Shouldn't couchdb treat null and undefined values the same?

Well, a "null" value is a way of saying "this doesn't have a value" but when
something is undefined, you don't know if it has a value or not. The difference
is subtle, but it's an important one.

> I am aware that there is in fact a difference in javascript, but since
> there is no "undefined" keyword for JSON, I would argue that that should
> not be the case for JSON and couchdb.

Well, an undefined value is by definition, undefined.

-- 
Noah Slater, http://tumbolia.org/nslater

Mime
View raw message