> 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
> 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
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
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
> 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 (
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
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
> 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
-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
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
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
11 matches
Mail list logo