Avatar
norio_nomura 3/8/2019 11:27 PM
なるほど。 func useFoo(_ foo: some Foo) { /* ... */ } func makeFoo() -> some Foo { /* ... */ } https://forums.swift.org/t/se-0244-opaque-result-types/21252/59
You're correct that they're duals. I touched on this briefly in "future directions". It would be great to eventually support some Foo as an argument type as well, which would let you write: func useFoo(_ foo: some Foo) { /* ... / } func makeFoo() -> some Foo { / ... */ } ...
👍 1