W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1996

Reasons against unravelling recursion in lookup.

From: Anselm Baird-Smith <abaird@w3.org>
Date: Fri, 9 Aug 1996 08:36:53 +0500
Message-Id: <9608091236.AA00569@www18.w3.org>
To: alex@access.com.au (Alexandre Rafalovitch)
Cc: www-jigsaw@w3.org
Alexandre Rafalovitch writes:
 > Working on a new resource I found a situation where I would preferred to
 > have recursive lookup instead of loop in a Client. Which does step by step
 > lookup.

Done in the next release :-) I thought that the loop was just
de-recursiving the process, but in fact it had more subbtle
effects. The way lookup is done in the next release has subttly
changed, as I mention in some previous mail about the new filtering
model.

 > What I needed to do is for parent during lookup stage to know if a
 > descendent resource does not exist. The reason I need to do that is because
 > in situation when child does not exist, I want parent to take some evasive
 > actions (basically return redirect instead of non-found).  It can be done,
 > if the child of DirectoryResource does not exist, but if it is further
 > descended, then it is impossible, because lookup of a child is done not
 > recursively from directory resource, but from a Client. Therefore Parent
 > never knows if a child is in trouble.

I think you will be able to do this with the next release of Jigsaw
(yep, I am nearly sure)

 > Also, current filter model does not let me catch errors either, because it
 > is not called on error. I know that next filter model should be able to
 > work differently and it would solve my problems (hopefully), but  until
 > then (RSN) I can't do anything.

I am working really hard to put out the release ...

 > This letter is not a request for solutions, even though such would be
 > welcomed, but a food for thought about what was the price of unravelling
 > recursive lookup call.

Correct (I mean we paid the high price).

BTW: While you seem to think a lot these days ;-) if you have any
other serious design flaws to mention, it is really the right time to
speak up. 

Anselm.
Received on Friday, 9 August 1996 08:36:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT