I keep writing code like foo.path where I'm thinking foo is some other object, but it’s already a Path, this compiles our to dynamicMember and then I'm confused about it.
In general there are only a few times it is useful:
Path.root.usr.local
Path.home.Library
Bundle.main.resources.foo
// etc.
So perhaps make it so these return some other type that can be dynamic-membered while standard Paths cannot.
I keep writing code like
foo.path
where I'm thinking foo is some other object, but it’s already aPath
, this compiles our todynamicMember
and then I'm confused about it.In general there are only a few times it is useful:
So perhaps make it so these return some other type that can be dynamic-membered while standard Paths cannot.
Also:
Would be nice.