Re: Variadic parameters vs parameter defaults

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Variadic parameters vs parameter defaults
Дата
Msg-id 200812171947.15571.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Variadic parameters vs parameter defaults  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wednesday 17 December 2008 06:03:06 Tom Lane wrote:
> This method
> eliminates the discrepancy between anyarray and other types of variadic
> parameters, and it leaves the door open for someone to use something
> besides an empty array as the default.  (Who are we to say that such a
> thing is never useful?

I think it is a mistake to consider this a default value issue at all.  If you
pass zero arguments to a function, the function should get zero.

Or why would you pass <> N arguments when N are provided for any N?


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Variadic parameters vs parameter defaults
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Variadic parameters vs parameter defaults