Re: Dollar in identifiers

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Dollar in identifiers
Дата
Msg-id 200108171525.f7HFPAU24830@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Dollar in identifiers  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Dollar in identifiers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> In fact, with $-as-identifier we'd have this useful property: given a
> lexically-recognizable identifier, substitution of a parameter token
> for the identifier does not require insertion of any whitespace to
> keep the parameter lexically recognizable.  Some of you will recall
> plpgsql bugs associated with the fact that the current lexer behavior
> does not have this property.  (The other direction doesn't work 100%,
> for example: "select $1from" is lexable, "select foofrom" isn't.  But
> that direction is much less interesting in practice.)
> 
> In short, $-as-identifier makes the lexer behavior noticeably cleaner
> than it is now.
> 
> I started out firmly in the "keep $ an operator character" camp.  But
> after thinking this through I'm sitting on the fence: both options seem
> about equally attractive to me.

Sure, if you want to remove it from operators, that is fine, but adding
it to identifiers seems weird seeing as only one person wants it and it
isn't standard.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Dollar in identifiers
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Dollar in identifiers