From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: map-put! and (setf (map-elt ...) ..) on lists Date: Mon, 17 Dec 2018 18:06:46 +0200 Message-ID: <83h8fcdtnt.fsf@gnu.org> References: <87y38p4ely.fsf@tromey.com> <8b3d6cc4-43ac-48cc-be4c-917f601faa43@default> <87imzstm6v.fsf@petton.fr> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1545062691 17115 195.159.176.226 (17 Dec 2018 16:04:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2018 16:04:51 +0000 (UTC) Cc: tom@tromey.com, monnier@IRO.UMontreal.CA, drew.adams@oracle.com, emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 17 17:04:47 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYvNv-0004Ll-2E for ged-emacs-devel@m.gmane.org; Mon, 17 Dec 2018 17:04:47 +0100 Original-Received: from localhost ([::1]:47603 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYvQ1-0000oP-Rh for ged-emacs-devel@m.gmane.org; Mon, 17 Dec 2018 11:06:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYvPo-0000nc-5r for emacs-devel@gnu.org; Mon, 17 Dec 2018 11:06:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYvPk-0006Lw-F2 for emacs-devel@gnu.org; Mon, 17 Dec 2018 11:06:44 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYvPk-0006Ld-7N; Mon, 17 Dec 2018 11:06:40 -0500 Original-Received: from [176.228.60.248] (port=4534 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gYvPj-0006km-RH; Mon, 17 Dec 2018 11:06:40 -0500 In-reply-to: <87imzstm6v.fsf@petton.fr> (message from Nicolas Petton on Mon, 17 Dec 2018 12:41:28 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:231881 Archived-At: > From: Nicolas Petton > Date: Mon, 17 Dec 2018 12:41:28 +0100 > Cc: Tom Tromey , emacs-devel@gnu.org > > Given that seq.el is completely free of side-effects (IIRC, there might > be exceptions but I don't think so), and that map.el was done mimicking > seq.el but for key/value collections, I like the idea of stating clearly > when a function of map.el mutates the argument. A function whose name begins with "set-" usually does.