Last active
October 18, 2018 13:14
-
-
Save kuyazee/a77637d6b159d83aa5216bed8684dfeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension FooBar { | |
// Use this if you don't want to refactor your code. | |
static func bar() -> FooBar { | |
return .bar(()) | |
} | |
// Use this if you want your code to be shorter. | |
// It's all about your personal preferences. | |
static var foo: FooBar { | |
return .foo(()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment