Re: Functions and Parentheses

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Functions and Parentheses
Date: 2017-10-06 21:33:55
Message-ID: 611.1507325635@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Igal @ Lucee.org" <igal(at)lucee(dot)org> writes:
> How come `current_date` has no parenthesis but `clock_timestamp()` does?

Because the SQL standard says that CURRENT_DATE doesn't have parentheses.
It is a function by any other measure, though.

(AFAICT, the SQL committee is unacquainted with any principles of
programming language syntax design that emerged later than the COBOL
era. Their capacity to invent new and non-orthogonal syntax for every
new feature seems boundless.)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2017-10-06 22:10:45 Re: Functions and Parentheses
Previous Message David G. Johnston 2017-10-06 21:33:07 Re: Functions and Parentheses