Re: Variadic parameters vs parameter defaults - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Variadic parameters vs parameter defaults
Date
Msg-id 200812171947.15571.peter_e@gmx.net
Whole thread Raw
In response to Re: Variadic parameters vs parameter defaults  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Variadic parameters vs parameter defaults
Next
From: "Pavel Stehule"
Date:
Subject: Re: Variadic parameters vs parameter defaults