Re: massive quotes?

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: massive quotes?
Дата
Msg-id 3F60DF32.5090202@Yahoo.com
обсуждение исходный текст
Ответ на Re: massive quotes?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: massive quotes?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers

Bruce Momjian wrote:

> Sounds good.  I just think keywords in general are weird to use for
> quoting.  We use "'" for quoting, so something similar like another
> operator combination would be nice.  I have never been fond of the
> here-document approach, though I can see the value of doing
> here-documents in here-documents, though if we make the open and close
> of the quote string different <--, -->, we can still do that, no?
> 

The beauty of here-documents is that you specify your closing tag on a 
per usage base and can vary that depending on the content you need to 
enclose. Keep in mind that this literal mechanism is not only used for 
PL/pgSQL, but for other languages like PL/Tcl and PL/Perl as well. 
Imagine the pain for a Tcl programmer if we'd go with curly braces!


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Another small bug (pg_autovacuum)
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: massive quotes?