You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call a NSTimer.after and pass a function, it doesn't have a argument name for second argument. This feels not natural for me regarding that all other functions usually used default or external names.
NSTimer.after(1.second, close)
Using default names don't change the nice trailing closure syntax
public class func after(interval: NSTimeInterval, block: () -> Void) -> NSTimer
...
NSTimer.after(1.second) {
print("done")
}
If you agree I can make a PR :)
The text was updated successfully, but these errors were encountered:
Thanks, but I think that's unnecessary. It reads quite naturally as the passed methods are going to be named with verbs generally. No need for verbosity.
When I call a
NSTimer.after
and pass a function, it doesn't have a argument name for second argument. This feels not natural for me regarding that all other functions usually used default or external names.Using default names don't change the nice trailing closure syntax
If you agree I can make a PR :)
The text was updated successfully, but these errors were encountered: