pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: 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:11:45 -0400
Message-ID: <20161024191145.GQ13284@tamriel.snowman.net> (raw)
In-Reply-To: <17167.1477335799@sss.pgh.pa.us>
References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql>
	<17167.1477335799@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> 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.

+1

> 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.

I'm not sure it's worth the resulting mess.

Thanks!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (16+ messages)  latest in thread

Message-ID: <20161024191145.GQ13284@tamriel.snowman.net>
Permalink:  ../20161024191145.GQ13284@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20161024191145.GQ13284@tamriel.snowman.net

 · 

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: sfrost@snowman.net, 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: <20161024191145.GQ13284@tamriel.snowman.net>
  References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql> <17167.1477335799@sss.pgh.pa.us> <20161024191145.GQ13284@tamriel.snowman.net>

* 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