pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Remove extra comma at end of enum list
Date: Mon, 24 Oct 2016 15:03:19 -0400
Message-ID: <17167.1477335799@sss.pgh.pa.us> (raw)
In-Reply-To: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql>
References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Fabien COELHO wrote:
>> I find it annoying that "//" comments are not supported, or having to
>> declare variables at the beginning of a block instead of when first used...

> I think some c99 features would be nice (variadic macros for one), but
> those particular two get a big "meh" from me.

Yeah.  Personally, I'd want to continue the rule against // comments just
as a matter of maintaining stylistic consistency.  Code that's got a
random mishmash of // and /* comments looks messy, if you ask me.

An alternative that would be worth considering is to adopt a uniform
rule of // for line-ending comments and /* for all other uses.  We'd
have to teach pgindent about that, and I dunno how hard that is.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (16+ messages)  latest in thread

Message-ID: <17167.1477335799@sss.pgh.pa.us>
Permalink:  ../17167.1477335799@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17167.1477335799@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com, coelho@cri.ensmp.fr, michael.paquier@gmail.com, magnus@hagander.net, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Remove extra comma at end of enum list
  In-Reply-To: <17167.1477335799@sss.pgh.pa.us>
  References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql> <17167.1477335799@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox