[swift-evolution] Returning nothing

Chris Lattner clattner at apple.com
Thu Jul 21 13:46:12 CDT 2016


On Jul 21, 2016, at 9:42 AM, Daniel Steinberg via swift-evolution <swift-evolution at swift.org> wrote:
>  given that one of Swift’s design principles is … for APIs to read like English phrases,

This isn’t a goal of Swift.  The goal is to provide clarity at point of use, and many other things:
https://swift.org/documentation/api-design-guidelines/

I don’t see any advantage to renaming Void, particularly given that almost no one writes Void for first-order functions.

-Chris



More information about the swift-evolution mailing list