public inbox for [email protected]
help / color / mirror / Atom feedFrom: Dagfinn Ilmari Mannsåker <[email protected]>
To: Matthias van de Meent <[email protected]>
Cc: Artur Formella <[email protected]>
Cc: [email protected]
Subject: Re: Allowing additional commas between columns, and at the end of the SELECT clause
Date: Mon, 13 May 2024 13:28:19 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAEze2WhL_A9QO1xHQnEoYN1g5wsigqrL2+FLELcjFwaA-nP-Ug@mail.gmail.com>
References: <[email protected]>
<CAEze2WhL_A9QO1xHQnEoYN1g5wsigqrL2+FLELcjFwaA-nP-Ug@mail.gmail.com>
Matthias van de Meent <[email protected]> writes:
> On Mon, 13 May 2024 at 10:42, Artur Formella <[email protected]> wrote:
>> Motivation:
>> Commas of this type are allowed in many programming languages, in some
>> it is even recommended to use them at the ends of lists or objects.
>
> Single trailing commas are a feature that's more and more common in
> languages, yes, but arbitrary excess commas is new to me. Could you
> provide some examples of popular languages which have that, as I can't
> think of any.
The only one I can think of is Perl, which I'm not sure counts as
popular any more. JavaScript allows consecutive commas in array
literals, but they're not no-ops, they create empty array slots:
❯ js
Welcome to Node.js v18.19.0.
Type ".help" for more information.
> [1,,2,,]
[ 1, <1 empty item>, 2, <1 empty item> ]
- ilmari
view thread (5+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Allowing additional commas between columns, and at the end of the SELECT clause
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox