Hacker News new | ask | show | jobs
by mercutio2 4400 days ago
> 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.

https://developer.apple.com/library/prerelease/ios/documenta...

1 comments

Oh cool, I definitely missed that!