From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: "Raw" string literals for elisp Date: Wed, 08 Sep 2021 09:10:22 -0400 Message-ID: References: <4209edd83cfee7c84b2d75ebfcd38784fa21b23c.camel@crossproduct.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9745"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Anna Glasgall Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 08 15:11:51 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 1mNxMl-0002Jr-6H for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Sep 2021 15:11:51 +0200 Original-Received: from localhost ([::1]:57520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNxMk-0004Se-1O for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Sep 2021 09:11:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNxLU-0002N5-Lb for emacs-devel@gnu.org; Wed, 08 Sep 2021 09:10:32 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:44780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNxLQ-0007bR-DV for emacs-devel@gnu.org; Wed, 08 Sep 2021 09:10:30 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 265CA100140; Wed, 8 Sep 2021 09:10:28 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DD98310000B; Wed, 8 Sep 2021 09:10:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1631106626; bh=oBqRkFTZFx6MrxvfODWMfsp+sWqX9OC4xUu7gIM6gD0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Yr1bw8omfi+/RF8+00gE7/+qlx/OCCSq1vkHe4VYcTCy1BiYvkNIUR3G5nTU5Q+ts +GoqklbtM80ts9uV+E99pa7u7VsYtQJwJhfbVWRSqmCSxi38iK75NoGsMtdGxyHkFS 4nfN8cozR2jsY83Wc14H6ZCC/C61Gv4FXEx4Jor1j3UQkOYYR3zX1zzHqptdMATAWQ mEtg+pNmcmonk6eQ0vBGileIPhN7/TBrkT8l7bfOUIN4OEvR6uEAwHtbNJXe84VXkz NAC7N0SfjUmBYsz5bUDrEqi5kXTnJFdRUrqOcToT60Xfj2oHtXf3EzgDmF+XeK+38l NMpHkZaX0Cqyg== Original-Received: from milanesa (unknown [104.247.244.135]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E2EA2120264; Wed, 8 Sep 2021 09:10:22 -0400 (EDT) In-Reply-To: <4209edd83cfee7c84b2d75ebfcd38784fa21b23c.camel@crossproduct.net> (Anna Glasgall's message of "Tue, 07 Sep 2021 21:49:33 -0400") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:274337 Archived-At: > I've long been annoyed by the number of backslashes needed when using > string literals in elisp for certain things (regexes, UNC paths, etc), I most other discussions around this in the past, regexps were the only significant cases. I don't know what you have in mind behind the "etc.", but as for UNC: how often od you use them in ELisp and do you really need backslashes there (I thought slashes work almost as well in most of Windows)? And AFAIC adding raw strings just to halve the number of backslashes in regexps seems both too much and too little: you'd likely prefer a new regexp syntax which doesn't require backslashes for grouping and alternation. Stefan "not a big fan of raw strings in ELisp"