C++ Logo


Advanced search

Subject: Re: [SG16-Unicode] [isocpp-lib-ext] Proposed design change to P1030 filesystem::path_view
From: Ville Voutilainen (ville.voutilainen_at_[hidden])
Date: 2019-08-28 05:15:51

On Wed, 28 Aug 2019 at 07:18, Andrew Tomazos via Lib-Ext
<lib-ext_at_[hidden]> wrote:
> I think modelling a path as a container of its components is reasonable.
> What isn't reasonable is that those components are themselves paths, as this would imply that the value of a single-component path P is a container of one item, and that one item contained in P has the value P. A container shouldn't be able to contain itself. It's nonsensical.

It's perfectly sensical for hierarchical things, but I'm not entirely
convinced that path components are such things under paths.

> I think what I'm saying is that filesystem paths and filesystem path components should obviously be distinct types.

By that obviousness claim, we should've seen a proposal for that by now.

SG16 list run by sg16-owner@lists.isocpp.org