From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: string function - "format" function proposal |
Date: | 2010-10-14 12:50:35 |
Message-ID: | 4CB6FC9B.6080907@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 10/14/2010 08:25 AM, Robert Haas wrote:
>
>> IMHO, I like {} syntax as like as C# because the format strings are extensible.
>> { pos [ : format ] } -- ex {3:l}, {3} (, and {l} could be also supported)
>> Escapes: {{ => {, }} => }
> My personal preference (and Pavel's, I guess) is to use the C-like
> syntax. But I wouldn't be upset if consensus congealed around some
> other option.
They're both somewhat arcane. But I think the C syntax is likely to be
more familiar to a wider group of users (including, for example, perl
hackers) than the C# syntax, and is to be preferred on those grounds alone.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2010-10-14 12:55:22 | Re: [JDBC] Support for JDBC setQueryTimeout, et al. |
Previous Message | Robert Haas | 2010-10-14 12:25:58 | Re: string function - "format" function proposal |