Re:Swift – observations from Rust’s original designer
by mercutio2 on Tuesday June 03, 2014 @01:41AM
(#7838327)
> and there doesn't seem to be a way to define optional method parameters
Did you miss the part about default values?
If you're calling an Objective-C selector with more than one argument, you are indeed using an external parameter name, but external parameters are explicitly not required if you're writing pure Swift.
Did you miss the part about default values?
If you're calling an Objective-C selector with more than one argument, you are indeed using an external parameter name, but external parameters are explicitly not required if you're writing pure Swift.
https://developer.apple.com/library/prerelease/ios/documenta...