Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bymCu-0004ZR-EZ for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 20:50:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bymCt-0006Wd-Ch for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 20:50:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bymBU-0003Hj-PV for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 20:49:28 +0000 Received: from jiboia.ensmp.fr ([194.214.158.137] helo=cc-tupan-roaming-a.ensmp.fr) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bymBR-0001Hh-Nl for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 20:49:27 +0000 Received: from cri.ensmp.fr (net-93-151-234-8.cust.vodafonedsl.it [93.151.234.8]) (authenticated bits=0) by cc-tupan-roaming-a.ensmp.fr (8.15.2/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id u9OKnLuQ011266 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 24 Oct 2016 22:49:22 +0200 Date: Mon, 24 Oct 2016 22:49:20 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@lancre To: Tom Lane cc: Alvaro Herrera , Michael Paquier , Magnus Hagander , PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: Remove extra comma at end of enum list In-Reply-To: <17167.1477335799@sss.pgh.pa.us> Message-ID: References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql> <17167.1477335799@sss.pgh.pa.us> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-Miltered: at cc-tupan-roaming-a.ensmp.fr with ID 580E73D1.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 580E73D1.000 from net-93-151-234-8.cust.vodafonedsl.it/net-93-151-234-8.cust.vodafonedsl.it/93.151.234.8/cri.ensmp.fr/ X-Pg-Spam-Score: -3.2 (---) Content-Transfer-Encoding: 8BIT Content-Type: text/plain; format=flowed; charset=ISO-8859-15 List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org >>> 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. Coding styles are by definition a subjective area... Homogeneity *whatever the precise but reasonable rules* in a code base is a good thing. > An alternative that would be worth considering is to adopt a uniform > rule of // for line-ending comments and /* for all other uses. Why not. As far as comments are concerned, editors usually highlight them in some color, and my eyes get used to the comment color, so the simpler & shorter the better, really. > We'd have to teach pgindent about that, and I dunno how hard that is. Maybe it is enough to just to turn "/* no-nl */" to "// no-nl" in pgindent's post_indent, but probably I'm too naïve:-) -- Fabien. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers