Should there be a Path
type for object paths?
#6582
Unanswered
bonsairobo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now everything takes
String
and then paths get normalized and validated. I think it would be less error-prone if aPath
type, similar tostd::path::Path
, were provided. At least for constructing paths viaPath::join
. But maybe it could be a way to be sure you have a validPath
by construction, rather than requiring validation of an arbitraryString
.Beta Was this translation helpful? Give feedback.
All reactions