Re: WIP: default values for function parameters

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Bruce Momjian" <bruce(at)momjian(dot)us>, "Gregory Stark" <stark(at)enterprisedb(dot)com>, "Grzegorz Jaskiewicz" <gj(at)pointblue(dot)com(dot)pl>, "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Subject: Re: WIP: default values for function parameters
Date: 2008-12-12 14:14:45
Message-ID: 0B0D8ADC-3570-42A0-8532-2877645148E9@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Dec 12, 2008, at 2:47 PM, Pavel Stehule wrote:

> it's look well, but I still prefer some combination with =
>
> name: = ''
> name: => '''
> :name = ''
> $name => ..
> $name = ..
>
> Maybe I am too conservative

Given that the colon already indicates "This label corresponds to that
value", the other operator characters are redundant. In English, I
write things like this:

first: go to store
second: get eggs

See what I mean? I quite like the colon solution.

Best,

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Sam Mason 2008-12-12 14:14:48 Re: WIP: default values for function parameters
Previous Message Merlin Moncure 2008-12-12 14:14:32 table types/check constraints