From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: map.el and naming Date: Sat, 11 Apr 2015 02:52:39 +0200 Message-ID: <874monpju0.fsf@petton.fr> References: <87lhji1aw8.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1428713594 18803 80.91.229.3 (11 Apr 2015 00:53:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Apr 2015 00:53:14 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 11 02:53:04 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 1YgjfU-0005PA-8l for ged-emacs-devel@m.gmane.org; Sat, 11 Apr 2015 02:53:04 +0200 Original-Received: from localhost ([::1]:41521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgjfT-0006t9-JF for ged-emacs-devel@m.gmane.org; Fri, 10 Apr 2015 20:53:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgjfH-0006t3-El for emacs-devel@gnu.org; Fri, 10 Apr 2015 20:52:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgjfE-0002yH-6L for emacs-devel@gnu.org; Fri, 10 Apr 2015 20:52:51 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:45360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgjfD-0002xe-UZ for emacs-devel@gnu.org; Fri, 10 Apr 2015 20:52:48 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 54955209F0 for ; Fri, 10 Apr 2015 20:52:42 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 10 Apr 2015 20:52:46 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=d89ittdAutg1P6PWXtH0VwJV8Cs=; b=gDvrx /3FdpVSXzTcwkdVmUh97MLE8vDGQ8J55pvjj/H71lAfWo99DHqomgZYmiqw8xJGg FmIGuU5u7findRryG3LZ6KWq/NA59kSSSrx5KwoLR1fjdpIp+NSpwHDxwKoe8gr6 nVYNS8EbptvAfiFahP+IwKjN9VqcZJnd5KU458= X-Sasl-enc: J8NQ4fOkmtH7HvnxW6CoU1a/4++4a1zSFDt6rq/bQsLF 1428713565 Original-Received: from blueberry (unknown [80.216.68.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 5F094C00011 for ; Fri, 10 Apr 2015 20:52:45 -0400 (EDT) In-reply-to: <87lhji1aw8.fsf@petton.fr> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 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:185272 Archived-At: --=-=-= Content-Type: text/plain Nicolas Petton writes: > 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? I'm back with this issue. Since I have "map" both as a verb and as a name, and because I don't want to call "mapping" something else, I think I'll go with renaming the library. What do you think about "hash"? It seems to be the name used in Ruby such collections[1]. [1] http://ruby-doc.org/core-2.2.1/Hash.html --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJVKHBXAAoJECM1h6R8IHkQ5NcH/2EnQv3DD4RxW+TX9jwSjYG7 plQDgkRjZkOUTa/wfqxyoqbNMsxlkOKhLB25vfV1f1k1qEHDgUtnHVcnI9kqnLNh sbQpkLpBmU1Sm8SutoPmeJii5nK+gtva0xSKrhtJphYnYTlqBNntWfT56a8gMCQm 0RJ9XfFTzrN1x1Pq6bspWk5VdJLUm8c22L8yL/HUL7S0cAzHltCibBHkBzPBRUv5 cby38snnIdW2YhDZmSmXxRZ9qINrbONmToSCuSOREVpuf2N994VR0j2rLzKA2BvN +wN+EbtO2Dz5wQ7jr8KmNdYRTkr9qiZiLsaainCV9s7jMEeVN5kDOXBMBJlcJXY= =8CMd -----END PGP SIGNATURE----- --=-=-=--