aqua
aqua copied to clipboard
Omit function arguments with defaults
It's a very convenient pattern to have defaults for arguments.
func foo(arg: string = "hello")
foo()
foo("world")
It would really help with upgradeability as well. E.g. adding a new API argument with type ?X can have = nil in its definition.