[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Keywords as hash: API design: null or empty hash

From: John Peacock <jpeacock_at_rowman.com>
Date: 2005-09-23 03:35:47 CEST

Julian Foad wrote:
> Yes. That's why it's a bit of a special case: the concept is not that a
> keywords hash can be null, but that some functions take an _optional_
> keywords hash, and thus accept NULL as the alternative to a keywords
> hash.

OK, that makes perfect sense to me now. There would be nothing gained by
creating a special type that would just alias apr_hash_t (which is what I did in
one of my earlier patches).

Thanks for helping get this into the code (both of you)! Hopefully, I can find
some time to start working on inherited properties, where this code change will
come in very handy.


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 23 03:36:13 2005

This is an archived mail posted to the Subversion Dev mailing list.