# Why can't closures have labels and be more readable?

**URL:** <https://forums.swift.org/t/why-cant-closures-have-labels-and-be-more-readable/21872>\
**Category:** Using Swift\
**Created:** [March 21, 2019, 11:25am UTC](https://forums.swift.org/t/why-cant-closures-have-labels-and-be-more-readable/21872 "2019-03-21T11:25:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Joe\_Groff](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joe_groff/32/1929_2.png) [@Joe\_Groff](https://forums.swift.org/u/Joe_Groff)\
**Post date:** [March 21, 2019, 5:23pm UTC](https://forums.swift.org/t/why-cant-closures-have-labels-and-be-more-readable/21872/8 "2019-03-21T17:23:34Z")

</div>

The closure syntax tries to serve a lot of different purposes; I tried to explain some of the historical context [in a response to this thread](https://forums.swift.org/t/history-why-does-closure-syntax-use-the-keyword-in/21885/2). For your use case, Swift also supports nested named function declarations:

```swift
func multiplyByTwoAndThree(a: Int) -> (Int, Int) {
  func multiply(b: Int) -> Int {
    return a * b
  }
  return (multiply(b: 2), multiply(b: 3))
}

```

and these have all the powers of closures—they can refer to their outer context, and be passed around as function values—but also allow you to use the same syntax as top-level functions and methods, use argument labels, and so on.

As for why function types don't themselves support argument labels, see [SE-111](https://github.com/apple/swift-evolution/blob/master/proposals/0111-remove-arg-label-type-significance.md) for background; it was a cleanup of the type system and language design around function types and argument labels, to make it so that argument labels are consistently always a part of declaration names like they are in Objective-C. In accepting that proposal, we left the door open to considering allowing labels to appear again as part of declarations involving closures; in the future, we could again allow `var multiply: (a: Int, b: Int) -> Int` as a declaration of `multiply(a:b:)` as a variable.

---

_[View the full topic](https://forums.swift.org/t/why-cant-closures-have-labels-and-be-more-readable/21872)._
