Make Path
a type #499
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#499
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently,
Path
and related types are type aliases for strings. This provides no type safety and makes it impossible to e.g. provide different template instantiations for paths and strings, even when semantics differ. Wouldn't it be nice if paths were a thin wrapper around strings with defined semantics? We can make it happen!Need to check what CanonPath does and how it should relate to this desired type. Other than that I'm for it.
CanonPath is much more restricted and can't be used here, but its interface is broadly fine to clone and make
Path
a concept. we'd suggest not usingstd::path
just yet even if it looks appealing because we will absolutely die when given non-posixly paths (whichstd::path
supports, and we currently treat posixly regardless)