pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
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 23:13:29 +0200 (CEST)
Message-ID: <alpine.DEB.2.20.1610242257030.20001@lancre> (raw)
In-Reply-To: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql>
References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>


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

This is probably a matter of taste.

The question really to know when some C99 features (inline, mixing code & 
declarations, flexible array members, slash-slash comments, compound 
literals, variadic macros, restrict qualifier, ...), will be considered 
okay for Pg sources, or if they should be kept C89 compliant for the next 
27 years.

Well, it seems that Microsoft took time to implement C99 features, which 
would mean that a recent "Visual C++" would be required to compile pg on 
windows if pg would use C99 features.

> .oO( I wonder if it'd be possible to make ereport() an inline function ... )

Probaby not: ISTM that ereport relies on the fact that it is a macro to 
avoid evaluating some arguments until necessary, but the compiler would 
not do that on a function, whether inlined or not, because it would change 
the semantics if the evaluation was to fail.

-- 
Fabien.


-- 
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: <alpine.DEB.2.20.1610242257030.20001@lancre>
Permalink:  ../alpine.DEB.2.20.1610242257030.20001@lancre/
Also on:    postgresql.org/message-id/alpine.DEB.2.20.1610242257030.20001@lancre

 · 

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: coelho@cri.ensmp.fr, alvherre@2ndquadrant.com, 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: <alpine.DEB.2.20.1610242257030.20001@lancre>
  References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql> <alpine.DEB.2.20.1610242257030.20001@lancre>

* 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