Re: Calling PL functions with named parameters

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Gaetano Mendola <mendola(at)bigfoot(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Calling PL functions with named parameters
Date: 2004-08-14 11:52:42
Message-ID: 411DFD0A.20409@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gaetano Mendola wrote:
> Oliver Jowett wrote:
>
>> Gaetano Mendola wrote:
>>
>>> Oliver Jowett wrote:
>>>
>>>> David Fetter wrote:
>>>>
>>>>> Dennis has pointed out that mixing the call-with-named-parameter
>>>>> interface with call-by-order-of-parameters one would cause confusion,
>>>>
>>>>
>>>>
>>>> Python's equivalent syntax allows you to mix the two forms so long
>>>> as all the by-position parameters come first:
>>>>
>>> python don't have overloaded functions...
>>
>> It doesn't change how you'd handle overloaded functions; you still
>> have a type for every parameter available.
>
>
> I think will be a mess that will break the "minor surprise" principle,
> even the bad C++ stays away from this field ( se explicit constructors,
> and automatic cast limited to only one level ).

I don't understand your argument. What is the surprising behaviour you
are worried about?

-O

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-08-14 12:52:13 Re: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to
Previous Message Oliver Jowett 2004-08-14 11:47:45 Re: Calling PL functions with named parameters