Re: string function - "format" function proposal

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: string function - "format" function proposal
Дата
Msg-id 4CB6FC9B.6080907@dunslane.net
обсуждение исходный текст
Ответ на Re: string function - "format" function proposal  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: string function - "format" function proposal  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Itagaki Takahiro
Дата:
Сообщение: Re: [BUGS] rollback to savepoint leads to transaction already in progress
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [JDBC] Support for JDBC setQueryTimeout, et al.