[Zope3-dev] Notations for paths

Florent Guillaume fg@nuxeo.com
Fri, 20 Dec 2002 15:12:38 +0100


> > > > 1) shuffle around tuples for something that *isn't* a tuple
> > >
> > > But it is! It's a sequence of steps for traversal.
> >
> >Then it should be a list.  Tuples should be used for fixed-length
> >heterogeneous sequences.  Lists for variable-length homogeneous
> >sequences.
> 
> Great!  Now in addition to parsing errors, we can have errors caused by 
> accidentally modifying shared mutable objects.  Zope 3 applications will 
> then be even *more* fun to debug than Zope 2 applications...  if you're a 
> masochist, anyway.  ;)

I definitely don't think using lists would be the right thing.

As Guido says, having the canonical form for an absolute location be
u'foo/bar' would be fine with me. It's even more canonical than a tuple
of names because a name isn't allowed to have a '/' in it (and all other
Unicode characters, or the empty string, are allowed).

OTOH I'm willing to be convinced that a class is the best way to do it,
but I'm not swayed by the arguments I saw.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com