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

From Greg Stark
Subject Re: WIP: default values for function parameters
Date
Msg-id 4136ffa0812120731y737f5eb3wfa3f969789581530@mail.gmail.com
Whole thread Raw
In response to Re: WIP: default values for function parameters  (Dimitri Fontaine <dfontaine@hi-media.com>)
Responses Re: WIP: default values for function parameters  ("Douglas McNaught" <doug@mcnaught.org>)
List pgsql-hackers
On Fri, Dec 12, 2008 at 3:11 PM, Dimitri Fontaine
<dfontaine@hi-media.com> wrote:
> That's why I'm preferring the common-lisp syntax of :param value, or its
> variant param: value.

FWIW there is no such common-lisp syntax. Colon is just a regular
symbol character and :param is just a regular symbol in common-lisp.
There is a convention that functions parse their argument lists
looking for such tokens as indicators of what to do with the next
argument but it's purely a convention. There's no syntactic
significance to the colon.

A similar problem arises with using Perl as a precedent. => is just a
regular operator in perl which quotes the lhs as a string if it's a
simple token and otherwise behaves just like a comma. That would be
very different from what we're talking about having it do here.

-- 
greg


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WIP: default values for function parameters
Next
From: Grzegorz Jaskiewicz
Date:
Subject: Re: Polymorphic types vs. domains