On 13 October 2017 at 21:15, Jean-Daniel <mail...@xenonium.com> wrote:
> I don’t think this is a good idea to make discardable part of the function > type. > > What would fun(callback: () -> discardable Int) would means ? > you mean this? func foo(callback: () -> discardable Int) { ... let x = callback() ... callback() // no warning or error here } Mike
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution