On Tue, 14 Jun 2011 15:34:53 +0300, Michel Fortin <michel.for...@michelf.com> wrote:

There's much more to named arguments as it first appears. Have you thought about:

1. variadic arguments?

There is already a syntax for this in the language.

fun(a:1, var:{3,5,7})

2. named template arguments?

Do we need this?

3. template variadic arguments (tuples) and how they expand as function parameters?

This one is a bit tricky but wouldn't 1 also apply here?

Also, with reordering, if you have two overloaded functions of this form:

        void fun(int a, string b) {}
        void fun(string b, int a) {}

Only solution i can think of to this would be changing argument names, otherwise an error.

Reply via email to