From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs rewrite in a maintainable language Date: Mon, 12 Oct 2015 19:18:06 +0300 Message-ID: <834mhwoybl.fsf@gnu.org> References: <561A19AB.5060001@cumego.com> <87io6dl0h0.fsf@wanadoo.es> <87lhb82qxc.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444666713 20822 80.91.229.3 (12 Oct 2015 16:18:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2015 16:18:33 +0000 (UTC) Cc: ofv@wanadoo.es, emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 12 18:18:24 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 1Zlfns-0002xr-83 for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 18:18:24 +0200 Original-Received: from localhost ([::1]:56459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlfnr-0006WR-7k for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2015 12:18:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfnU-0006Vv-VT for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:18:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlfnS-0000UV-7A for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:18:00 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:35758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlfnR-0000UG-VW for emacs-devel@gnu.org; Mon, 12 Oct 2015 12:17:58 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NW400E007RSYJ00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Mon, 12 Oct 2015 19:17:55 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW400EZE7XUVF50@a-mtaout23.012.net.il>; Mon, 12 Oct 2015 19:17:55 +0300 (IDT) In-reply-to: <87lhb82qxc.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:191362 Archived-At: > From: Oleh Krehel > Date: Mon, 12 Oct 2015 14:48:47 +0200 > Cc: emacs-devel@gnu.org > > I think slowly moving the Emacs C core to C++ is a good idea. The two > languages are supposed to be largely compile-compatible, i.e. g++ can > understand what was meant for gcc. C++ is a dying language. On my daytime job we have difficulty recruiting C++ programmers for the last 2-3 years. Why should we invest a non-trivial amount of effort, just to get to another language that is foreign to most contributors? It sounds like waste of precious resources. > I've been trying to get into understanding Emacs C core, but it's just > so hard with all those macros around. A macro is just like a function when used. Maybe adding more comments will help. Don't hesitate to ask questions and point out places where things are hard to understand. > I think even replacing `#define` > with `const` would be a huge improvement, worthwhile of the switch. Standard C supports 'const', and we use it quite a lot in Emacs sources.