Re: WIP: default values for function parameters - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: WIP: default values for function parameters
Date
Msg-id 162867790812120547l5eaae852q75822c25e0ea4324@mail.gmail.com
Whole thread Raw
In response to Re: WIP: default values for function parameters  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: WIP: default values for function parameters
Re: WIP: default values for function parameters
Re: WIP: default values for function parameters
Re: WIP: default values for function parameters
List pgsql-hackers
2008/12/12 David E. Wheeler <david@kineticode.com>:
> On Dec 12, 2008, at 2:39 PM, Tom Lane wrote:
>
>> So I think that really this is never going to fly unless it uses a
>> keyword-looking reserved word.  And we're not going to take some short
>> word that's not reserved now and suddenly make it so.  So, despite
>> Pavel's objection that the AS syntax proposal might be confused with
>> other uses of AS, I seriously doubt that any proposal is going to get
>> accepted that doesn't recycle AS or some other existing reserved word.

when I should exactly identify param name, the we should to use any symbols.

>
> I'm okay with AS if that's the way it has to be, but what about a colon
> right at the end of the label? A cast is two colons, so no conflict there:
>
>  SELECT foo(1, name: 'bar', quantity: 10);

it's look well, but I still prefer some combination with =

name: = ''
name: => '''
:name = ''
$name => ..
$name = ..

Maybe I am too conservative
Pavel

>
> No doubt I'm missing something…
>
> Best
>
> David

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: default values for function parameters
Next
From: Aidan Van Dyk
Date:
Subject: Re: Sync Rep: First Thoughts on Code