From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: map.el and naming Date: Sat, 28 Feb 2015 15:32:07 +0200 Message-ID: References: <87lhji1aw8.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1135f578eeb7600510260289 X-Trace: ger.gmane.org 1425130335 18771 80.91.229.3 (28 Feb 2015 13:32:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Feb 2015 13:32:15 +0000 (UTC) Cc: emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 28 14:32:15 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 1YRhV8-000314-NO for ged-emacs-devel@m.gmane.org; Sat, 28 Feb 2015 14:32:14 +0100 Original-Received: from localhost ([::1]:41228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRhV7-0002FX-Lv for ged-emacs-devel@m.gmane.org; Sat, 28 Feb 2015 08:32:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRhV4-0002DG-5s for emacs-devel@gnu.org; Sat, 28 Feb 2015 08:32:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRhV2-0006WQ-W5 for emacs-devel@gnu.org; Sat, 28 Feb 2015 08:32:10 -0500 Original-Received: from mail-ie0-x231.google.com ([2607:f8b0:4001:c03::231]:38202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRhV2-0006WB-RF for emacs-devel@gnu.org; Sat, 28 Feb 2015 08:32:08 -0500 Original-Received: by iecrd18 with SMTP id rd18so37611770iec.5 for ; Sat, 28 Feb 2015 05:32:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Hp6eD+3x5W3pBRG8iMEnPZkmNypcDWGl1DSkq496tW4=; b=ONY4lraJC93fWe1LolHFJCIZHQOOO+k0g+WNIFY9/aJl6Oi7jup8P1qtadThKkCiEm QnnYVmcUwUnjp0RNLSQJSBbiCNh4W2wI9hqVa/4UHX8H7TuKEAEZKA7+jTmT9nhU7NmD EYsUsdJnFFRjHEAjc0NOk6lV0VVBoaVoDCrilPztq9SIaySEfMgxKew9KF/z5LLHaFC7 RbjomKnG2YSN9Eqv7uODnGL9dUQw35c+Gtb8ZZyHKTIzZP0OLkZmwIkiCwlCLHKD0wSK K9iLARTe5HmqB7T4KG8T+pbrUn7QdO3pMhk8KW0nRxZAyCXipEyjf+HNpvGgiIidND3+ Dnsg== X-Received: by 10.50.124.133 with SMTP id mi5mr10938984igb.13.1425130327551; Sat, 28 Feb 2015 05:32:07 -0800 (PST) Original-Received: by 10.36.78.18 with HTTP; Sat, 28 Feb 2015 05:32:07 -0800 (PST) In-Reply-To: <87lhji1aw8.fsf@petton.fr> X-Google-Sender-Auth: 1A3MQiKKtPaiWFORRHBzwd25m4Q X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::231 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:183537 Archived-At: --001a1135f578eeb7600510260289 Content-Type: text/plain; charset=UTF-8 Maybe you can call the lib `assoc.el` or something like this, as `map.el` sounds kind of confusing (I wouldn't expect something named this way to work with alists). Btw, what about plists? On 28 February 2015 at 14:24, Nicolas Petton wrote: > Hi, > > I'm working on another library similar to seq.el but for maps (alists > and hash-tables for now). > > I have an issue with naming regarding mapping over keys/values of a > map. I thought about calling `map-map' the function that would map over > the keys and values of map, and `map-map-keys' the function that would > map over the keys of a map, etc. > > This is really ugly to my eyes, as there is map the name and map the > verb. Does anyone have a better idea? > > Cheers, > Nico > -- > Nicolas Petton > http://nicolas-petton.fr > --001a1135f578eeb7600510260289 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Maybe you can call the lib `assoc.el` or something like th= is, as `map.el` sounds kind of confusing (I wouldn't expect something n= amed this way to work with alists). Btw, what about plists?

On 28 February 2015 at 14:2= 4, Nicolas Petton <nicolas@petton.fr> wrote:
Hi,

I'm working on another library similar to seq.el but for maps (alists and hash-tables for now).

I have an issue with naming regarding mapping over keys/values of a
map. I thought about calling `map-map' the function that would map over=
the keys and values of map, and `map-map-keys' the function that would<= br> map over the keys of a map, etc.

This is really ugly to my eyes, as there is map the name and map the
verb.=C2=A0 Does anyone have a better idea?

Cheers,
Nico
--
Nicolas Petton
http://nicolas-petto= n.fr

--001a1135f578eeb7600510260289--