Re: Functions and Parentheses

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "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 22:10:45
Message-ID: 34d1f1b0-2455-6014-2343-ff1623edd590@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/06/2017 02:33 PM, Tom Lane wrote:
> "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.)

This is the best statement I have read all week.

JD

>
> regards, tom lane
>
>

--
Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc

PostgreSQL Centered full stack support, consulting and development.
Advocate: @amplifypostgres || Learn: https://pgconf.us
***** Unless otherwise stated, opinions are my own. *****

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igal @ Lucee.org 2017-10-06 23:10:03 Re: Functions and Parentheses
Previous Message Tom Lane 2017-10-06 21:33:55 Re: Functions and Parentheses