# What's the reason behind the fact that variadic parameters in functions can't have default values?

**URL:** <https://forums.swift.org/t/whats-the-reason-behind-the-fact-that-variadic-parameters-in-functions-cant-have-default-values/17394>\
**Category:** Using Swift\
**Created:** [October 26, 2018, 8:15am UTC](https://forums.swift.org/t/whats-the-reason-behind-the-fact-that-variadic-parameters-in-functions-cant-have-default-values/17394 "2018-10-26T08:15:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [October 26, 2018, 9:31am UTC](https://forums.swift.org/t/whats-the-reason-behind-the-fact-that-variadic-parameters-in-functions-cant-have-default-values/17394/2 "2018-10-26T09:31:38Z")

</div>

_[Variadics are a topic where people seem to be quite passionate about, but I'm absolutely convinced that the current implementation really doesn't pull it's own weight, and you just discovered another quirk]_

Afaik, variadics are a type on their own - and they are very special:  
You can only use them in one single place (method signature), and they magically turn into arrays when they are used.  
Therefor, you cannot initialize a variadic argument with an array (and the syntax without `[]` isn't allowed either.

_There's a very simple solution to this and other issues, but people seem to love some special cases like this 🤷‍♂️  
See [[Discussion] Variadics as an Attribute](https://forums.swift.org/t/discussion-variadics-as-an-attribute/5186) or search for variadics (there are many threads about the topic).  
Basically, it's about getting rid of the special syntax and turn variadics into pure sugar for arguments that can be initialized with an array literal (that would be more than just arrays, which is one of the many benefits of this approach)_

---

_[View the full topic](https://forums.swift.org/t/whats-the-reason-behind-the-fact-that-variadic-parameters-in-functions-cant-have-default-values/17394)._
