From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: map.el and naming Date: Sun, 12 Apr 2015 22:38:00 +0900 Message-ID: <87fv85cvrb.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87lhji1aw8.fsf@petton.fr> <874monpju0.fsf@petton.fr> <552A1AF3.6080309@dancol.org> <871tjpzher.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1428845908 30764 80.91.229.3 (12 Apr 2015 13:38:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Apr 2015 13:38:28 +0000 (UTC) Cc: John Mastro , Nicolas Petton , Daniel Colascione , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 12 15:38:19 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 1YhI5a-0004Z4-AO for ged-emacs-devel@m.gmane.org; Sun, 12 Apr 2015 15:38:18 +0200 Original-Received: from localhost ([::1]:45377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhI5Z-0007rE-Or for ged-emacs-devel@m.gmane.org; Sun, 12 Apr 2015 09:38:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhI5V-0007ng-K4 for emacs-devel@gnu.org; Sun, 12 Apr 2015 09:38:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhI5R-0004nw-HQ for emacs-devel@gnu.org; Sun, 12 Apr 2015 09:38:13 -0400 Original-Received: from shako.sk.tsukuba.ac.jp ([130.158.97.161]:39966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhI5R-0004ks-8F for emacs-devel@gnu.org; Sun, 12 Apr 2015 09:38:09 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by shako.sk.tsukuba.ac.jp (Postfix) with ESMTPS id 1013E1C3895; Sun, 12 Apr 2015 22:38:01 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id DF01F120EC9; Sun, 12 Apr 2015 22:38:00 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta34) "kale" 83e5c3cd6be6 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 130.158.97.161 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:185336 Archived-At: Stefan Monnier writes: > >>> "dict-" is short. "Dictionary" is another well-known name for a mapping > >>> data structure. +1 I like how it sounds, and the way it phonetically distinguishes between the object and the operation. > So it seems the alternative is between finding a replacement for the > "map, the type" (where "dict" is the best candidate so far) and finding > a replacement for "map, the operation" (not sure what the best > candidates would be here, maybe "iterate", or "loop", or "visit"?). Try "visit", please. Iterate and loop imply linear order to some extent, and people often assume the order is stable against insertion. (Yeah, I know, in fact "iterate" doesn't imply any such thing, and the implication in "loop" is pretty weak. It's just that I've seen this happen with "iterate" in Python.)