> On 07 Jun 2016, at 22:08, Sam Dods via swift-evolution
> <[email protected]> wrote:
>
> yes, exactly Doug... the properties at type level are part of the interface
> and their types can be inferred, so i don't see the difference with function
> argument types.
>
> i just find it really bulky when writing something like this:
>
> func doSomething(thing, withManager: SomethingManager = SomethingManager()) {
> // prepare the thing
> }
You can get rid of the repetition here by using the implicit member expression
syntax (i.e. dot-prefixing the initialiser):
func doSomething(thing, withManager: SomethingManager = .init()) { ... }
— Pyry
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution