3 ms·
It looks like Swift has automatic currying though, so that's pretty close.
by ilovecaching 8y ago
It looks like Swift has automatic currying though, so that's pretty close.
- dbaupp 8y agoIt doesn't have automatic currying. What code/docs are you getting that impression from?
- plorkyeran 8y agoSwift used to have a special syntax for defining automatically curried functions, but it was removed in Swift 3: https://github.com/apple/swift-evolution/blob/master/proposals/0002-remove-currying.md https://github.com/apple/swift-evolution/blob/master/proposa...
- dbaupp 8y agoIndeed, and the compiler still had the relicts of that functionality at least until Swift 4. I'm wondering how they got the impression Swift still has currying, given it sounded like a recent "discovery".