apple / swift-system

Low-level system calls and types for Swift
Apache License 2.0
1.18k stars 102 forks source link

FilePath is Decodable, but not from a String #106

Open tayloraswift opened 2 years ago

tayloraswift commented 2 years ago

it looks like FilePath has a conformance to Codable, but this is a synthesized conformance, and expects a keyed container with a property called _storage.

i don’t know if this is intentional, but it doesn’t seem very useful. FilePath should just be Decodable from a String.