From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Brooks Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Interpret #r"..." as a raw string Date: Wed, 03 Mar 2021 02:42:23 -0800 Message-ID: <87im68h628.fsf@db48x.net> References: <20210227.031857.1351840144740816188.conao3@gmail.com> <87r1kxi97x.fsf@db48x.net> <87czwgk0kg.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5521"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: =?utf-8?Q?Aur=C3=A9lien?= Aptel , Naoya Yamashita , Stefan Monnier , Emacs development discussions To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 03 11:48:43 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 1lHP3a-0001LN-Qc for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Mar 2021 11:48:42 +0100 Original-Received: from localhost ([::1]:60620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHP3Z-0003Xi-Q6 for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Mar 2021 05:48:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHOxa-0006Wb-Kw for emacs-devel@gnu.org; Wed, 03 Mar 2021 05:42:30 -0500 Original-Received: from smtp-out-4.mxes.net ([198.205.123.69]:20582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHOxY-0001Kk-M5 for emacs-devel@gnu.org; Wed, 03 Mar 2021 05:42:30 -0500 Original-Received: from Customer-MUA (mua.mxes.net [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 4Dr9YX3x1Nz3cBR; Wed, 3 Mar 2021 05:42:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mxes.net; s=mta; t=1614768146; bh=xW99/D1qwPHNssGdhugs5CMy7ERZwCgIaR2jUgpLrT4=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=YbGJSYFzQMZw9PyP/9kixf8BDW+mmYIa+7QVbbLXQ+DyhqBQrPAgzzW0hPTpDSVkJ bC/2IRwy6L0saaoUrJUftwqixAnbCjJKjqzGLZRibLHNW5td2ZZpx5C8fGOIyEQUyq TPyYFNtpVgMpv5XElkkE3yeoVDILGRzBpS+sPTws= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGOfPtRkwAAABJQ TFRFpKfbdou67PD6JjJgAwUWXGSeIcyLHgAAAkZJREFUOI1VU8Fy6yAMxLi+Q13fCZ3cnQL3dqTc 7RD+/1feStDXVnXHDuvVSivZTMba2GPdw3gyCGcMAFxTyrTd9dwGoxHiZX9PmRFUHYAQlGGtXY+F Uk0SJOxgJiUEnH1qkitT9D+pQub7qGAmUbR6bu3CvI96Yv6QqkBBMrsyfZccr1/RDXGDTLf4P7ZY glVxe2V+/ACXWO1gvDO9/gDRpFFVmPluvLcmBjd5H6d8DEte+Pbk4rcY/Fa5tLKLOtCZsuQKYhpa LOkYDT7hESya7/WIET3lfQBqX0pwFtbI832Is0ayMUR9B+12xjgPCQ089cfwkCkX6L5TPmRelJTh zMS0Sz1PyjLAMCUWjcmgQLWQMds+e3aaauZDf9dU9A2/8kPVF2odCUoMKHkfjJR+mbgC+DRiycw5 3XSqGe6HmhN/AWjHypkAXOAFW5EiuA1ge2GiZuMb0s1fSEXcATeLUfbyEY2L8yPOmdSsdghQXx3K pz2eoeXuYvMCINVFDrCdNfVUp4eJ6cSEbjbgFjBEvonGGTrgv9cHjAc8aVgSAPoxaONbzfwhDIhR at7IIS7fAGiDSwIA9alhhTBzfA7YM2FY6eMwayrIGK8FDFmshmUA43WqhFtpvoqG9HHaJ7fqtgTz 8EWVkgZgtsylFliHDgk0MB7KAEC45C/rgnGvanNLXyzOeTzcT2nw/N44gfrtYXRQLoz9Q3TgmJRx 2Mx/Q51qzpm+l3m8z2SWBqC5+PZXAtNYlGFf/gKfHfjFkDT4x7od7R+w3Ls+ZdQBuQAAAABJRU5E rkJggg== In-Reply-To: <87czwgk0kg.fsf@gmx.de> (Michael Albinus's message of "Wed, 03 Mar 2021 11:12:47 +0100") X-Sent-To: Received-SPF: none client-ip=198.205.123.69; envelope-from=db48x@db48x.net; helo=smtp-out-4.mxes.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=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:265873 Archived-At: Michael Albinus writes: > Daniel Brooks writes: > > Hi Daniel, > >> net/tramp-sh.el >> 962: quoted=3D`echo \"$file\" | sed -e \"s/\\\"/\\\\\\\\\\\\\\\\\= \\"/\"` >> >> Look at that! 19 backslashes followed by a double=E2=80=93quote. That=E2= =80=99s just >> stupid. I wonder if it=E2=80=99s a record? Should we use git blame to fi= nd the >> names of every person who touched that line and ask them what they >> think? I can guess what they would say. > > Really? I'm the only person who has updated this line, and I'm quite > happy with the state of affairs. Then I guessed wrong. Will you be insulted if I assume that you have a slight case of stockholm syndrome? ;D > And in any case, Tramp won't use raw string literals for the next 10 > years or so, because it must be backward compatible. That's fine. I'm not suggesting that anyone should rewrite the thirty or fourty thousand lines of lisp in Emacs that have excess backslashes either. They already work! They're fine. I think a raw string syntax is a good idea because of the time it will save us all in the future, writing the next thirty or fourty thousand lines. And then, after that, people will write another thirty or fourty thousand lines. A generation after that will write yet more code that has syntax nested inside of syntax, and the time saved will continue to add up. As the millenia pass by, more and more time will be saved, to be spent on more useful things. Humans all across the Milky Way and even as far as its satellite dwarf galaxies, will all happily use raw string syntax never knowing that one of their distant ancestors blithely wrote, tested, and debugged a line with 19 backslashes in a row merely because raw strings hadn't been properly invented yet. As the first ships depart for Andromeda carrying the seeds of new civilizations, computers filled to the brim with software=E2=80=A6 You get the idea. The cost is small, and the benefit is large. db48x