From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: Emacs rewrite in a maintainable language Date: Tue, 13 Oct 2015 16:38:36 +0200 Message-ID: <871tcyq1eb.fsf@gmail.com> References: <561A19AB.5060001@cumego.com> <87io6dl0h0.fsf@wanadoo.es> <87lhb82qxc.fsf@gmail.com> <878u78b3hg.fsf@fencepost.gnu.org> <87h9lwyv33.fsf@gmail.com> <561C368F.6010306@cs.ucla.edu> <87oag3xb2i.fsf@gmail.com> <20151013114630.GA4613@acm.fritz.box> <87io6bou1j.fsf@gmail.com> <87si5f0x2s.fsf@openmailbox.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444748846 28369 80.91.229.3 (13 Oct 2015 15:07:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 15:07:26 +0000 (UTC) Cc: Mathieu Lirzin , Emacs developers , Paul Eggert To: John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 13 17:07:25 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zm1Ai-0007mP-76 for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2015 17:07:24 +0200 Original-Received: from localhost ([::1]:36667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm1Ah-0004AL-P5 for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2015 11:07:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm0jO-0004Jo-Cv for emacs-devel@gnu.org; Tue, 13 Oct 2015 10:39:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm0jI-0004v1-M4 for emacs-devel@gnu.org; Tue, 13 Oct 2015 10:39:10 -0400 Original-Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:34254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm0jI-0004ux-GW for emacs-devel@gnu.org; Tue, 13 Oct 2015 10:39:04 -0400 Original-Received: by wicgb1 with SMTP id gb1so92000418wic.1 for ; Tue, 13 Oct 2015 07:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Mj8P+P5ZDBiivOvGTVmo0J0/JJc5cFJCbQ3rX2I1kXo=; b=Ti37ig8z/GY84vfuxqk22KUsl3cWnmX2E5hCywwoXsp+GLqY1p7FNobsEyLj9Z1+wN TGMrhgaLPMkJZ6OIGay2yyBp4GiGOmvC72tvGeWFBs8Z8xRgFBg3+tBjjdK8qU7rcABR 3d5PEE54l3C+3NmO1KAGUWQvyxRYT8mLLCIh/EHORE7EY/PKomAU3DEu9hxpXQx4zSf8 idbhvkTLa9Zyrs9SV4wJ61oT4uK3xmgiUOG3n2CN7NGBq75ccEE0MJkkDbJ58pHGh6E7 r095tGZ5uZxX0tRozMezmcUc2qhT7LdEg0JkLfUsOzp4CELBuTgjyKeNxic/EclfmFQs u+hA== X-Received: by 10.180.79.34 with SMTP id g2mr22407681wix.28.1444747103106; Tue, 13 Oct 2015 07:38:23 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id h8sm3138455wib.21.2015.10.13.07.38.21 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 13 Oct 2015 07:38:21 -0700 (PDT) In-Reply-To: (John Yates's message of "Tue, 13 Oct 2015 09:52:34 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::231 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191467 Archived-At: John Yates writes: > Standardizing is a good thing. Basing the choice purely on subjective > preference is less so. Many who have looked at the C and C++ grammars > notice that > > const char * > > is an historical irregularity that has been folded into the grammar as > a special case. Embracing and standardizing on that special case > detracts from learning a consistent rule and typically leads to > misreading of more complex declarators. The alternative is to leverage > the fact that a const or volatile qualifier always applies to the > object to its left so cv-qualifiers uniformly appear on the right. No > need to remember special case rules or the relative precedence of > various type constructs. Many C++ well-regarded coding standards > have adopted such a rule (along with moving '*' and '&' leftward). I'm fine with either way, as long as it's one and not two, while preferring "const char *" since that's how I learned C++. Just stating the data points for "const char *" vs. "char const *": - Linux: 99.4% - GCC: 99.2% - Boost: 66.1% - Emacs: 85.9% Here, I think Linux and GCC are in a good spot style-wise, while both Emacs and Boost suffer from mixed styles. Oleh