From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Random832 Newsgroups: gmane.emacs.help Subject: Re: member returns list Date: Sat, 05 Sep 2015 17:04:09 -0400 Message-ID: References: <55E5C99B.3020608@yandex.ru> <87lhcpu2wb.fsf_-_@debian.uxu> <874mjchisl.fsf@web.de> <87pp20jxy7.fsf@debian.uxu> <87twrcxyfk.fsf@mbork.pl> <87y4gnt2r5.fsf@debian.uxu> <87twran0dw.fsf@mbork.pl> <87d1xwbwh9.fsf@debian.uxu> <87r3mcagbe.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441487082 27706 80.91.229.3 (5 Sep 2015 21:04:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Sep 2015 21:04:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 05 23:04:33 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1ZYKdU-0001Zd-7L for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Sep 2015 23:04:32 +0200 Original-Received: from localhost ([::1]:42847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYKdT-0006up-Op for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Sep 2015 17:04:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYKdK-0006uj-9U for help-gnu-emacs@gnu.org; Sat, 05 Sep 2015 17:04:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYKdH-0000g1-4a for help-gnu-emacs@gnu.org; Sat, 05 Sep 2015 17:04:22 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYKdG-0000fu-Uq for help-gnu-emacs@gnu.org; Sat, 05 Sep 2015 17:04:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZYKdE-0001LW-I0 for help-gnu-emacs@gnu.org; Sat, 05 Sep 2015 23:04:16 +0200 Original-Received: from c-68-39-146-59.hsd1.in.comcast.net ([68.39.146.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Sep 2015 23:04:16 +0200 Original-Received: from random832 by c-68-39-146-59.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 Sep 2015 23:04:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:elaNMa+gyrl962jFCCvSqI4uoK4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107037 Archived-At: Emanuel Berg writes: > Because that is not more simple but on the contrary > more complicated, and it would imply the same data > (#'eq) appearing repeatedly in code blocks that > qualitatively do the same thing. How is this different from memq itself appearing repeatedly? Or the substring -eq appearing repeatedly in your version in symbols like member-eq and assoc-eq? (Or, for that matter, the letter "q" in the actual ones) - common data to describe common behavior is a feature, not a bug. It's just like using a naming convention, only it makes it possible (and obvious that it is possible) to substitute the comparison function with your own function. It's simpler because instead of having two functions to do two things with no obvious way to do the same thing with anything else, you have one function that can easily discoverably do anything. This would enforce being explicit about what comparison function is used by naming the comparison function no matter what function you are using it in, and not privilege eq and equal over other comparison functions. We have memql but not assql; my version would let you pass eql to anything. CL allows a keyword-argument :test to accomplish this.