Twitter | Search | |
Joe Groff
There's a proposal out to make it so that protocols with a `callAsFunction` requirement can be used with closure literals to create ad-hoc structs: I think the eventual endpoint would be that function types themselves become generic constraints like Rust
@Nickolas_Pohilets and I are working on a proposal to introduce anonymous structs in Swift. This pitch reduces the syntactic burden for users of APIs that use protocol-oriented design. In many cases...
Reply Retweet Like More
Replying to