Avatar
omochimetaru 8/31/2021 3:51 AM
First of all, great proposal 😃 Brent, earlier in the thread makes a lot of good points. But I’d still like to discuss two subjects: 1) What makes the proposal really stand on its feet compared to third-party libraries is the compiler generation magic. I feel divided about it. On one hand, this is the only solution today to have this level of t...
3:51 AM
2) Libraries like Marshal (https://github.com/utahiosmac/Marshal) and Unbox (https://github.com/JohnSundell/Unbox) don’t require the decoding functions to provide the type: those functions are generic on the return turn and it’s automatically inferred: func decode<T>(key: Key) -> T self.stringProperty = decode(key: .stringProperty) // correct specialisation of the generic function chosen by the compiler Is there a reason the proposal did not choose this solution? Its quite sweet.
3:51 AM
↑ご意見は見つかった