Re: path constructors and the next draft Wolfgang Corcoran-Mathe 26 Sep 2026 17:19 UTC

Peter & Duncan,

On 2026-09-25 14:59 +0200, Peter Bex wrote:
> On Fri, Sep 25, 2026 at 12:40:56PM +0000, D Guthrie wrote:
> In fact, to me it makes more sense to model [path segments] as a list,
> because a
> very common pattern in server-side code is to partially match a path
> prefix, strip that and pass the remainder to the handler for the matched
> path (as arguments, or for further hierarchical processing).

I agree.  I would much prefer that ‘path-segments’ return a list of
segments.  I can’t imagine needing the fast random-access time of a
vector to get a specific part of a path.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>