| From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
|---|---|
| To: | Gaetano Mendola <mendola(at)bigfoot(dot)com> |
| Cc: | Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Calling PL functions with named parameters |
| Date: | 2004-08-14 13:58:12 |
| Message-ID: | 411E1A74.40106@opencloud.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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:
> I'm worried about:
>
> (1) foo( integer, float);
> (2) foo( integer, integer, float a = 3 );
>
> which one is called with: foo( 2, 2 )?
This is a separate issue to the one I was discussing above. I am not
talking about default arguments at all here; I am talking about mixing
positional parameter syntax with named parameter syntax.
-O
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gaetano Mendola | 2004-08-14 14:00:32 | Re: Calling PL functions with named parameters |
| Previous Message | Gaetano Mendola | 2004-08-14 13:49:12 | Re: Calling PL functions with named parameters |