mxcl / Path.swift

Delightful, robust, cross-platform and chainable file-pathing functions.
The Unlicense
946 stars 36 forks source link

Drop `@dynamicMember` #44

Closed mxcl closed 5 years ago

mxcl commented 5 years ago

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.

Also:

Path.usr.bin

Would be nice.

mxcl commented 5 years ago

Done.