Re: JSON Function Bike Shedding - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: JSON Function Bike Shedding
Date
Msg-id 5120EA24.5090209@dunslane.net
Whole thread Raw
In response to Re: JSON Function Bike Shedding  ("David E. Wheeler" <david@justatheory.com>)
Responses Re: JSON Function Bike Shedding
List pgsql-hackers
On 02/16/2013 07:50 PM, David E. Wheeler wrote:
> On Feb 16, 2013, at 12:47 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
>
>> To answer David's point, there is no point in having both
>>
>>     get(json,text)
>>     get(json, variadic text[])
>>
>> since the second can encompass the first, and having both would make calls ambiguous.
> Oh. Well then how about
>
>     get(json, int)
>     get(json, text)
>     get(json, text[])
>
> ?
>


No, then we don't have a variadic version. You are going to have to 
accept that we can't make one function name cover all of this.

cheers

andrew




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: overlapping strncpy/memcpy errors via valgrind
Next
From: Greg Stark
Date:
Subject: Re: overlapping strncpy/memcpy errors via valgrind