From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Yates Newsgroups: gmane.emacs.devel Subject: Re: master 583cb26 2/3: Improve accuracy in string-replace description (bug#43598) Date: Mon, 28 Sep 2020 12:36:58 -0400 Message-ID: References: <20200927124520.25321.62354@vcs0.savannah.gnu.org> <20200927124522.BA20F207E0@vcs0.savannah.gnu.org> <9B45E488-F245-4A94-A492-C60B617A734B@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19588"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Mattias_Engdeg=C3=A5rd?= , Emacs developers To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 28 18:38:32 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMwAZ-00050L-N5 for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Sep 2020 18:38:31 +0200 Original-Received: from localhost ([::1]:36678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMwAY-0001Vu-Ne for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Sep 2020 12:38:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMw9K-00013T-4O for emacs-devel@gnu.org; Mon, 28 Sep 2020 12:37:14 -0400 Original-Received: from mail-lj1-f177.google.com ([209.85.208.177]:37617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMw9I-0000b2-L4 for emacs-devel@gnu.org; Mon, 28 Sep 2020 12:37:13 -0400 Original-Received: by mail-lj1-f177.google.com with SMTP id n25so1577342ljj.4 for ; Mon, 28 Sep 2020 09:37:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/NYojBDnJ3MQtpgqfFZJVPG8ZFmYBY1o7mHZWSB0xtA=; b=JdVFa2YrJO5Ybe8lBIkgNPLxI3iBGpApTDIRRkPHW2vsztSv47Ue6phMuanSiEDA20 gAC2VfEW1Ff8wBEjffKbUgl9VTi7kBscECfvJehP9NdWSbWZbPOIBsZAZ7WjPE8Ebsyu ymMMDsImYNOFouwT/AyADvBW/kr8QoQB7OUFt0xqrharmUYFD6tiNy/1aDe9gL3T3lhN jr7sOYNf2UAW6dvaanD1whXyz7RCj+Uy8GKQ4FUUjgde/iJSHc2WNLGLzLk+DLYSxlVz 5V7bEghycj/fKWj/g4KoxehEyTUGj939zs3Ul5cxQw2HF/wRYt/sADbmT79CdAj9DoUH 2a5g== X-Gm-Message-State: AOAM533Di0GauuddfdkaiSEIctsuV8YFVy6ERo4m5GwyrzIGA0OglX8v vG3iT04ZKvSXH+fM2Qj+P4XSRw6p9GdAwR3Kn4o= X-Google-Smtp-Source: ABdhPJycungqDtwJJ0SwFeOB2NY7uhhkMIQ8A7yeZHZIxJuLkMwNzXu6AycK5FuJnJTdwMfgmmMzilHhboncyzwOOm8= X-Received: by 2002:a2e:8810:: with SMTP id x16mr621092ljh.21.1601311030374; Mon, 28 Sep 2020 09:37:10 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=209.85.208.177; envelope-from=john.yates.sheets@gmail.com; helo=mail-lj1-f177.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 12:37:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.199, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.614, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256618 Archived-At: Okay. Then how about Return a string equal to @var{instring} with every occurence of @var{fromstring} replaced by @var{tostring}. On Mon, Sep 28, 2020 at 9:50 AM Robert Pluim wrote: > > >>>>> On Mon, 28 Sep 2020 07:43:03 -0400, John Yates said: > > John> Is there a role for the imperative mood? > John> Return @var{instring} after replacing every occurence of > John> @var{fromstring} with @var{tostring}. > > John> I find it typically shorter and more contractual. > > I think that fails to pass Mattias' requirement of making it clear > that the returned string is not a destructively modified 'instring' > > Robert > -- -- John Yates 505 Tremont St, #803 Boston, MA 02116