# Should labeled variadic parameters accept 0 arguments?

**URL:** <https://forums.swift.org/t/should-labeled-variadic-parameters-accept-0-arguments/12500>\
**Category:** Pitches\
**Created:** [May 9, 2018, 1:01am UTC](https://forums.swift.org/t/should-labeled-variadic-parameters-accept-0-arguments/12500 "2018-05-09T01:01:33Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tino](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tino/32/1073_2.png) [@Tino](https://forums.swift.org/u/Tino)\
**Post date:** [May 9, 2018, 2:29pm UTC](https://forums.swift.org/t/should-labeled-variadic-parameters-accept-0-arguments/12500/7 "2018-05-09T14:29:56Z")

</div>

Two unrelated features on top my wishlist would solve most of your issue as a byproduct:  
Replacing variadics ([[Discussion] Variadics as an Attribute](https://forums.swift.org/t/discussion-variadics-as-an-attribute/5186)) and constants as generic parameters ([Proposal: Compile-time parameters](https://forums.swift.org/t/proposal-compile-time-parameters/1250)).  
With those, your signature would be

```
func mean(_ alongAxes: @variadic MinimalSizeArray<Int, 1>) -> Tensor

```

I think it's better than adding yet another special case (even if it takes longer to be implemented).

---

_[View the full topic](https://forums.swift.org/t/should-labeled-variadic-parameters-accept-0-arguments/12500)._
