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: map.el and naming Date: Mon, 02 Mar 2015 15:55:33 +0200 Message-ID: <8361ajsduy.fsf@gnu.org> References: <87lhji1aw8.fsf@petton.fr> <8361amtabg.fsf@gnu.org> <87ioej26ij.fsf@petton.fr> <83fv9nsfht.fsf@gnu.org> <87h9u31qek.fsf@petton.fr> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1425304575 18876 80.91.229.3 (2 Mar 2015 13:56:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Mar 2015 13:56:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 02 14:56:08 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 1YSQpK-0005rO-QG for ged-emacs-devel@m.gmane.org; Mon, 02 Mar 2015 14:56:06 +0100 Original-Received: from localhost ([::1]:57167 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSQpK-0002XL-DS for ged-emacs-devel@m.gmane.org; Mon, 02 Mar 2015 08:56:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSQp4-0002RN-4m for emacs-devel@gnu.org; Mon, 02 Mar 2015 08:55:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSQoz-00011Z-MM for emacs-devel@gnu.org; Mon, 02 Mar 2015 08:55:50 -0500 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:51884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSQoz-00011E-Ed for emacs-devel@gnu.org; Mon, 02 Mar 2015 08:55:45 -0500 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NKL00E007D90M00@mtaout27.012.net.il> for emacs-devel@gnu.org; Mon, 02 Mar 2015 15:50:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKL00FNT7RRZ100@mtaout27.012.net.il>; Mon, 02 Mar 2015 15:50:15 +0200 (IST) In-reply-to: <87h9u31qek.fsf@petton.fr> 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.183 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:183567 Archived-At: > From: Nicolas Petton > Cc: Nicolas Petton , emacs-devel@gnu.org > Date: Mon, 02 Mar 2015 14:26:43 +0100 > > > Then why are you writing a separate library, which is "similar to > > seq.el but for maps"? Why not have a single library that handles all > > of these objects: lists, strings, vectors, alists, and hash-tables? > > Isn't it better to treat sequences and maps separate kind of > collections? They are IMHO too different to be both in the same > library. But polymorphism _is_ about using the same APIs for treating different objects. Do any of the operations in seq.el make sense with the objects you meant to handle in map.el? If so, it could make sense to have them treated by the same API. Anyway, if the above doesn't sound right, I can suggest maps.el and correspondingly maps-map-key etc.