In this scenario, should calling a warn_unused_result function as the last statement in a closure/function count as "using" its result (i.e. implicitly returning it)?
Jacob On Sat, Dec 19, 2015 at 4:51 PM, Erica Sadun via swift-evolution < [email protected]> wrote: > Is there a reason that any final non-void statement in a closure or > function shouldn't automagically be an optional return? (And automagically > warn_unused_result...?) > > On Dec 19, 2015, at 5:44 PM, Andrew Bennett via swift-evolution < > [email protected]> wrote: > > +1 for consistency with closures > > On Sun, Dec 20, 2015 at 8:15 AM, Stephen Christopher via swift-evolution < > [email protected]> wrote: > >> The discussion I was remembering, comment courtesy of Chris: >> https://devforums.apple.com/message/1014317#1014317 >> >> (linked from https://devforums.apple.com/thread/255242) >> >> >> _______________________________________________ >> swift-evolution mailing list >> [email protected] >> https://lists.swift.org/mailman/listinfo/swift-evolution >> >> > _______________________________________________ > swift-evolution mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-evolution > > > > _______________________________________________ > swift-evolution mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-evolution > >
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
