Re: Dollar in identifiers

Peter Eisentraut <peter_e@gmx.net>

From: Peter Eisentraut <peter_e@gmx.net>
To: Thomas Lockhart <lockhart@fourpalms.org>
Cc: Jan Wieck <JanWieck@Yahoo.com>, PostgreSQL HACKERS <pgsql-hackers@postgresql.org>
Date: 2001-08-16T16:01:12Z
Lists: 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