Re: Named arguments in function calls

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Named arguments in function calls
Date: 2004-01-25 17:38:28
Message-ID: 87smi4udwr.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


david(at)fetter(dot)org (David Fetter) writes:

> In article <Pine(dot)LNX(dot)4(dot)44(dot)0401251005300(dot)30205-100000(at)zigo(dot)dhs(dot)org> you wrote:
> >
> > I've been looking (and coded) a little bit on named function calls.
> > Calls on the form:
> >
> > foo (x => 13, y => 42)
> >
> > Implementing this means that the symbol => no longer can be defined
> > by the user as an operator. It's not used as default in pg, but I
> > just want to tell you up front in case you don't like that.

Is it really necessary to steal it? There's some precedent for special cases
in argument lists: "," is an operator in C yet it has special meaning in
function arguments.

--
greg

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dennis Bjorklund 2004-01-25 19:29:06 Re: Named arguments in function calls
Previous Message Peter Eisentraut 2004-01-25 17:23:33 Re: returning PGresult as xml