From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Interpret #r"..." as a raw string Date: Tue, 2 Mar 2021 15:46:03 +0100 Message-ID: References: <20210227.031857.1351840144740816188.conao3@gmail.com> 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="4110"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Naoya Yamashita , Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 02 15:47:16 2021 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 1lH6It-0000uX-Ot for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Mar 2021 15:47:15 +0100 Original-Received: from localhost ([::1]:53122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH6Is-0000yu-Q8 for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Mar 2021 09:47:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH6I2-00007W-G8 for emacs-devel@gnu.org; Tue, 02 Mar 2021 09:46:22 -0500 Original-Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]:33654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH6I0-0003iI-As for emacs-devel@gnu.org; Tue, 02 Mar 2021 09:46:22 -0500 Original-Received: by mail-io1-xd32.google.com with SMTP id n132so10091518iod.0 for ; Tue, 02 Mar 2021 06:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VfPmOCkWErpLuRUC6E66VtFWdmGS3INq6QZsxBZe9eQ=; b=raKL9xahKCDviZJO/mrcU9SGd/XK+CsmW4KXuFZmcML/tbqyvTPQHNrs9/eQSPywtO XZcnbKf4a8JKpyXbbaXNoswKxSaygtCDMQmvx4FS6hhZoDnTZ2RaVIlNI6FBDkFmoToe KKlTGu9nq9MG+Hs8305W6NPvqp2JNoyvmeTYkV5gYnqm3LS681V8yOaH6C0J7S+GzE/j vXktODn1/Pz3TYJ7LoPUKguBMyu34VDoC5C68DV+Eox3NV7i7TPNteWHGwcjB47rgE1M VBIl4KnrAOAT6YGT43QJei1QwmbZ5HAY2wB2oEEt6iPDV0Q+lCeUZsnTqB/TUrhD6gSp VJ1w== 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=VfPmOCkWErpLuRUC6E66VtFWdmGS3INq6QZsxBZe9eQ=; b=KLM2be6xujzfnOxatst/UsQb7tmpXtBe+or3fBRA9XDPhrMDCzkSskcZu352q8W30D e3DjfArIm+ZoxgnCUmd9NqHM49QahggoKJ+laaOmGR6MXADvpQtSVeYUTlYn2Yc85eiG bBmzp53ZwCLqIkIEWOhqYPXltNfATxCt5bRXeWLIBqHkqRNXhvEEU+Z44TBZHcr4UdRL Gps6Qyk/OTC8MT/WY1mTMFZnJRxvfSPsvCKrSp4GSljmGyKgNqK2MgLzcya8rLSs3Thu 59jwAVZ1aFOfSzvHV/x03twbG+hfjLk/uLpRRQmdqeV6Cy3Z4TqPhDx2fMHjEC+NkudV 5BxQ== X-Gm-Message-State: AOAM531Cpzpg25hBbNaIaMJVY9ztstltqM1CkBnnC7tOraVw89akrmcp EM3uC/VlreGCxRR++D0g+nko+4sxgrxxw05YowM= X-Google-Smtp-Source: ABdhPJy9MtxfCnFniiAisW6Lpvf5Q+Z8wDyJuk2mLP6eFW9fgV84hiB8Y+z7UgNP/UMzSbbBBJ8H35+x2qtpRNeuPT0= X-Received: by 2002:a6b:c401:: with SMTP id y1mr10513743ioa.110.1614696374252; Tue, 02 Mar 2021 06:46:14 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::d32; envelope-from=aurelien.aptel@gmail.com; helo=mail-io1-xd32.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:265834 Archived-At: Hi Stefan, On Tue, Mar 2, 2021 at 2:49 PM Stefan Monnier wrote: > Thanks, that's quite helpful. > At the end you state: > > I personally think raw strings have their use outside of regexes and > would be a nice addition to the Emacs Lisp language. > > I'm willing to believe it, but so far the only concrete examples I've > seen where raw string literals could be helpful are regexps. It's the most common use-case. The other is embedding conf files or source files in other languages (which is the same really, except there's no rx equivalent for those). It's pretty nice to be able to just dump some text verbatim (especially when copy pasting it from somewhere) with some special quotes at the start and at the end and not have to worry about it. > I'm clearly leaning against the addition of raw string literal (just > like I'm leaning against the addition of multiline comments, BTW) > because I feel the benefits are quite limited. I understand. I see some benefits with no cons. But I'm not maintaining Emacs so ultimately it's up to you, Eli and the rest of the crew (thx for all those years of work btw!). Cheers,