Re: string function - "format" function proposal - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: string function - "format" function proposal
Date
Msg-id 4CB6FC9B.6080907@dunslane.net
Whole thread Raw
In response to Re: string function - "format" function proposal  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: string function - "format" function proposal
List 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


pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Re: [BUGS] rollback to savepoint leads to transaction already in progress
Next
From: "Kevin Grittner"
Date:
Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al.