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 contributions, C and Lisp Date: Wed, 07 Jan 2015 21:38:08 +0200 Message-ID: <838uhe755r.fsf@gnu.org> References: <83bnxuzyl4.fsf@gnu.org> <874n3ke1qn.fsf@engster.org> <87sir336qn.fsf@fencepost.gnu.org> <20140301215057.GA19461@thyrsus.com> <87fvn1y0vx.fsf@fencepost.gnu.org> <87fvn0senq.fsf@uwakimon.sk.tsukuba.ac.jp> <8761nusb90.fsf@uwakimon.sk.tsukuba.ac.jp> <87vbkovhh7.fsf@engster.org> <87387rvobr.fsf@engster.org> <83ppat84hk.fsf@gnu.org> <20150106143933.0090bc83@jabberwock.cb.piermont.com> <83r3v77ij6.fsf@gnu.org> <20150106154539.3d0752c4@jabberwock.cb.piermont.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1420659506 11052 80.91.229.3 (7 Jan 2015 19:38:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2015 19:38:26 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, deng@randomsample.de, perry@piermont.com To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 07 20:38:20 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 1Y8wQf-0008H0-LQ for ged-emacs-devel@m.gmane.org; Wed, 07 Jan 2015 20:38:05 +0100 Original-Received: from localhost ([::1]:42517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8wQf-0000gr-2I for ged-emacs-devel@m.gmane.org; Wed, 07 Jan 2015 14:38:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8wQb-0000gb-EO for emacs-devel@gnu.org; Wed, 07 Jan 2015 14:38:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8wQY-0004Cq-6R for emacs-devel@gnu.org; Wed, 07 Jan 2015 14:38:01 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:49941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8wQX-0004Cm-UW; Wed, 07 Jan 2015 14:37:58 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NHT00F00NNMN600@mtaout28.012.net.il>; Wed, 07 Jan 2015 21:35:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NHT009I5NRSMX60@mtaout28.012.net.il>; Wed, 07 Jan 2015 21:35:52 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.184 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:181030 Archived-At: > Date: Wed, 07 Jan 2015 14:25:01 -0500 > From: Richard Stallman > CC: eliz@gnu.org, monnier@iro.umontreal.ca, deng@randomsample.de, > emacs-devel@gnu.org > > It certainly can be done with less. For instance, if the code says > > foo.x + bar.y > > or > > foo.x - bar.y > > it makes no difference for completion what that operator is. In an object-oriented language that supports operator overloading, the + or - can do anything, and accept only specific data types under certain constraints. For example, if foo.x is of a certain data type, the candidates for the right-hand operand might be restricted to a small subset of what a + or a - can generally support. If you complete to a large list of candidates here disregarding the constraints, you'd leave a lot of users unhappy. How do you know that kind of information without parsing the whole program yourself?