Re: Dollar in identifiers - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Dollar in identifiers
Date
Msg-id Pine.LNX.4.30.0108161757360.677-100000@peter.localdomain
Whole thread Raw
In response to Re: Dollar in identifiers  (Thomas Lockhart <lockhart@fourpalms.org>)
Responses Re: Dollar in identifiers
List pgsql-hackers
Thomas Lockhart writes:

> Are dollar signs currently allowed in operators? I'd hate to reduce the
> allowed number of characters for operators.

They are, therefore identifiers couldn't start or end with a dollar in any
case.  However, single "$" operator cannot exist, so foo$bar wouldn't be
ambiguous, but the tendency to confuse it with an operator syntax would
reduce the readability of code greatly, IMO.  However, a $$ operator can
exist, so a construct like foo$$bar would parse completely differently,
leaving you with a big mess.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Dollar in identifiers
Next
From: Bruce Momjian
Date:
Subject: Re: Patches (current CVS) for changes if index AM tables