From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: RE: map-put! and (setf (map-elt ...) ..) on lists Date: Tue, 18 Dec 2018 17:34:59 +0100 Message-ID: <871s6en68c.fsf@petton.fr> References: <87y38p4ely.fsf@tromey.com> <8b3d6cc4-43ac-48cc-be4c-917f601faa43@default> <87imzstm6v.fsf@petton.fr> <89a74aae-cc0d-4fea-aeef-1e4afdc518e5@default> <87bm5jm9eu.fsf@petton.fr> <150bbe9c-3ef4-4d43-9fce-23d608abd829@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1545150888 19535 195.159.176.226 (18 Dec 2018 16:34:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2018 16:34:48 +0000 (UTC) Cc: Tom Tromey , emacs-devel@gnu.org To: Drew Adams , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 18 17:34:44 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 1gZIKS-0004wK-10 for ged-emacs-devel@m.gmane.org; Tue, 18 Dec 2018 17:34:44 +0100 Original-Received: from localhost ([::1]:54971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZIMY-0000nE-6r for ged-emacs-devel@m.gmane.org; Tue, 18 Dec 2018 11:36:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZIKn-0000At-Ci for emacs-devel@gnu.org; Tue, 18 Dec 2018 11:35:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZIKm-0006lI-Ld for emacs-devel@gnu.org; Tue, 18 Dec 2018 11:35:05 -0500 Original-Received: from petton.fr ([2a00:5884:8368::1]:48702) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gZIKm-0006jL-Aw for emacs-devel@gnu.org; Tue, 18 Dec 2018 11:35:04 -0500 In-Reply-To: <150bbe9c-3ef4-4d43-9fce-23d608abd829@default> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=petton.fr; s=mail; t=1545150902; bh=31j6nPqoQbUV7KuXm3FcVymXmPqxq8vfcV/lS+LaEco=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:MIME-Version:Content-Type; b=UJKUYM5UCffiVewxtYWlqdzyMX0sCNC8KMgNLE/lkPKrPEY+6WYkpvBoVc7QzjNZkGqG76ZXJZUTrmaxCWsqH9ZS12D2RJbAlW+hcDXDcADX5IRvOwWm1p+UdjBBxD7NHWejPSa4fAoSm05UWP86iX0kVVCL/f5GPyubsUE7rsM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:5884:8368::1 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:231909 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Drew Adams writes: >> > Do we have a non-destructive `map-put'? >>=20 >> There's `map-insert'. > > My point was that there is no need for a function > name to signal that the function so named is > "destructive". The doc string should do that, > however. It can be very important to know that a function is destructive, I don't think it's a should be seen as an internal detail of the function. IOW, I think that whether a function is destructive or not is part of what the function does, not how it does it. Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE1AWqLIYsVPF+7mvg6LzXhmr8+XgFAlwZIbMACgkQ6LzXhmr8 +XgLvAf9H3mTjdy70OoDxjyEIyCjdLzOrh5cdBXh74orASVhrhJB5BMq8agNFJyD FAT4JUe1Zi88SKxmmEYMX9R3BeisEkONXZd0b8rWYzM0/ehWHf/cqTRie7YXMMRY VN0yCTsLVBajF52JiDiQk44eEFjkNAmjJJL8hQfs43ir39vU377bwu+lWBL85U1A OWcm/Ms/WWGRBXpLufqyLN1C4gvVC6y2AuLr5tnkr73vIBqB2t7zaEfmh3O4wEW2 S3tcO9LFJBdEVx2mvKEBdnTj6Vg543q6azYBx0QRUBorNgF2uUnrfB+sde3AXWK5 RPzdLvuMNxn1WeS4fwJKdQ+SX0QYBg== =Sky6 -----END PGP SIGNATURE----- --=-=-=--