Re: Named arguments in function calls

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Named arguments in function calls
Дата
Msg-id 7977.1075134148@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Named arguments in function calls  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Rod Taylor wrote:
>> If that was IS, then foo(x is 13) makes sense.

> I like that syntax.  For example

> select interest(amount is 500.00, rate is 1.3)

> is very readable, yet brief.

Yes, that does read well.  And "IS" is already a keyword.  We might have
to promote it from func_name_keyword to fully reserved status, but that
doesn't seem like a big loss.  I could go with this.

(We still need to check SQL200x though ...)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Named arguments in function calls
Следующее
От: ohp@pyrenet.fr
Дата:
Сообщение: Re: what does it mean