--

Hey, thanks for the post!

Unfortunately, your example of SE-0320 doesn't work as expected: It prints `[{"stringValue":"id_2"},"value_2",{"stringValue":"id_1"},"value_1"]` as if there weren't `CodingKeyRepresentable` conformance. I also tried examples from the proposal itself (https://github.com/apple/swift-evolution/blob/main/proposals/0320-codingkeyrepresentable.md) and Paul Hudson's (https://www.hackingwithswift.com/articles/247/whats-new-in-swift-5-6). All of them just don't work as described. Do you happen to know why?

(I'm using the toolchain Swift 5.6 Development Snapshot 2022-03-02 (a) – the latest known Swift 5.6 build ATM.)

--

--

Nikita Lazarev-Zubov
Nikita Lazarev-Zubov

Written by Nikita Lazarev-Zubov

Swift and general programming topics, Agile software development, soft skills

No responses yet