Re: [swift-evolution] Removing Variadic Parameters.

2016-07-07 Thread Tino Heth via swift-evolution
> Objective-C has variadic messages. I'd be surprised if any seasoned my fault — how could I forget those nil-terminated array-initializers? ;-) Yes, Objective-C had variadics, but imho they have been much worse than in Swift. ___ swift-evolution mailin

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-07 Thread Tino Heth via swift-evolution
> The second case would looks really strange without the variadic parameter > (calling site) syntax and it would no longer look like it’s one continuous > list of values. agreed, that would be odd — but I really hope that there will be a nice alternative in the future. One very fundamental thi

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-07 Thread David Rönnqvist via swift-evolution
That’s a possibility (at least for our use case). In our closed-source project we have 17 functions that take variadic parameters. In all cases it’s done that way because it’s possible for the caller to pass a comma separated list of values but the most common case is to only pass a single arg

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-07 Thread L. Mihalkovic via swift-evolution
Even vb does that... If you ever want to write a compiler or anything that has to dynamically adjust its behavior (which i would expect most objc devs never do) then it might be useful to not cut all the claws of this tigger. Regards LM (From mobile) > On Jul 6, 2016, at 8:38 PM, Tino Heth via s

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-07 Thread Haravikk via swift-evolution
> On 6 Jul 2016, at 21:13, David Rönnqvist via swift-evolution > wrote: > > I'd be reluctant to remove variadic parameters. We've found on our team that > variadic arguments are easier to read on the call site compared to array > arguments, especially when it's common to pass a single value (

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-06 Thread Rob Mayoff via swift-evolution
On Wed, Jul 6, 2016 at 2:57 PM, Tino Heth via swift-evolution wrote: > Can you talk about concrete examples? Because Objective-C had no variadic > messages, it's natural that the feature isn't utilized in Cocoa Objective-C has variadic messages. I'd be surprised if any seasoned Objective-C devel

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-06 Thread David Rönnqvist via swift-evolution
I'd be reluctant to remove variadic parameters. We've found on our team that variadic arguments are easier to read on the call site compared to array arguments, especially when it's common to pass a single value (but still possible to pass multiple values). - David > On 6 Jul 2016, at 20:38, T

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-06 Thread Tino Heth via swift-evolution
> I believe variadic parameters are useful in a range of situations and > I use them myself a lot. Can you talk about concrete examples? Because Objective-C had no variadic messages, it's natural that the feature isn't utilized in Cocoa, but I doubt that it is used by many native Swift libraries

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-06 Thread Leonardo Pessoa via swift-evolution
-1_000_000_000 I believe variadic parameters are useful in a range of situations and I use them myself a lot. As you mentioned yourself, you never created variadic functions and you are allowed to continue working like that for as long as it suits you so. It is a choice and you and other developer

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-06 Thread Saagar Jha via swift-evolution
On Wed, Jul 6, 2016 at 11:38 AM Tino Heth via swift-evolution < swift-evolution@swift.org> wrote: > It's a late answer… but I wanted to be a good citizen and checked if the > topic has been discussed before; so, it seems that is not the case ;-) > > In short, I agree: > Variadic parameters are som

Re: [swift-evolution] Removing Variadic Parameters.

2016-07-06 Thread Tino Heth via swift-evolution
It's a late answer… but I wanted to be a good citizen and checked if the topic has been discussed before; so, it seems that is not the case ;-) In short, I agree: Variadic parameters are somewhat cool, and I think I was exited when I've seen them in C the first time… but I afair, I never created