From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109327: Generalize INTERNAL_FIELD between buffers, keyboards and frames. Date: Sun, 05 Aug 2012 07:23:44 -0800 Message-ID: <501E9000.10301@cs.ucla.edu> References: <50191B54.2070705@yandex.ru> <5019FE2D.2060005@yandex.ru> <501B8C48.3000704@yandex.ru> <501C1F4D.5010007@cs.ucla.edu> <501E8A3E.1090708@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1344180244 20616 80.91.229.3 (5 Aug 2012 15:24:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2012 15:24:04 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 05 17:24:04 2012 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 1Sy2gW-0003fr-FA for ged-emacs-devel@m.gmane.org; Sun, 05 Aug 2012 17:24:04 +0200 Original-Received: from localhost ([::1]:33565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sy2gV-0005CI-HL for ged-emacs-devel@m.gmane.org; Sun, 05 Aug 2012 11:24:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sy2gS-0005AT-Qc for emacs-devel@gnu.org; Sun, 05 Aug 2012 11:24:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sy2gS-0005a3-4z for emacs-devel@gnu.org; Sun, 05 Aug 2012 11:24:00 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:53308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sy2gR-0005Yw-VZ for emacs-devel@gnu.org; Sun, 05 Aug 2012 11:24:00 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 6208DA60002; Sun, 5 Aug 2012 08:23:52 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ZB5EOtOyqLi; Sun, 5 Aug 2012 08:23:52 -0700 (PDT) Original-Received: from [192.168.11.39] (78-117-237-24.gci.net [24.237.117.78]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 96EC9A60001; Sun, 5 Aug 2012 08:23:51 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 In-Reply-To: <501E8A3E.1090708@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:152197 Archived-At: On 08/05/2012 06:59 AM, Dmitry Antipov wrote: > if you have a huge class with 50 private members, you're > enforced to have 50 get_xxx and 50 set_xxx member functions. > Most of them are inline and fast, They're *all* inline and fast, unless we put hooks in them that make them slow. The creation of the getter and setter methods is mechanical and can be automated if need be, so that's not really an obstacle. The important thing here is the readability of the use of these constructs; their definition is secondary. The main issue is readability. I find it more readable when the notation "f (x)" in ordinary C code means that F is a function, instead of some other construct that cannot possibly be a function.