From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: "Raw" string literals for elisp Date: Wed, 8 Sep 2021 18:05:32 +0200 Message-ID: <20210908160531.GA18656@tuxteam.de> References: <4209edd83cfee7c84b2d75ebfcd38784fa21b23c.camel@crossproduct.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14335"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 08 18:13:10 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 1mO0CD-0003US-K7 for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Sep 2021 18:13:09 +0200 Original-Received: from localhost ([::1]:42880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO0CB-0007dr-Qf for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Sep 2021 12:13:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO050-0001tD-KG for emacs-devel@gnu.org; Wed, 08 Sep 2021 12:05:43 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:54395) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1mO04y-0002Xk-Lx for emacs-devel@gnu.org; Wed, 08 Sep 2021 12:05:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=B8BTuzq4I+/qZdnDvcq3B7sMtgC2qn6R4mHI2+Pfhuc=; b=BwiznPWsuZo3UJwbDQ0rmcGbNBHeq+izhzEaGGRYlcpR+z1EsfipZW3wCC9wjArnRifMslDmcaa7r9CSvfwPfoUMxZZxacbvM9BYug+5n+auQzwFq82V9eWuCWjmrHFKQXSWrmW6FWZsmRH0tli3Xolr879r3T+a3lCV7/9TPeG8usTa6BAQyeEpJHwY9m8X4OhAgkeQVU5sVGRdwL6WyaTbqyIj5qWMq4ckEL2r9bTDnbs190FYbzKXWrDuq1Vk5Z+R+rmSv3uLOFGLBLREQvJA/PW1WVA64qPb17tFofQpQgLjv+um418mPWPalecUm1gBQajJoP8VaJg7XwsVkQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1mO04q-0004yy-3A for emacs-devel@gnu.org; Wed, 08 Sep 2021 18:05:32 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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:274368 Archived-At: --J/dobhs11T7y2rNN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 08, 2021 at 10:31:26AM -0400, Anna Glasgall wrote: > On Wed, 2021-09-08 at 09:10 -0400, Stefan Monnier wrote: [...] > > 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. > >=20 >=20 > I would be _thrilled_ to have that, but that seemed like it'd be even > _more_ work than this is already ballooning into [...] I just think these are two separate dimensions which happen to align in the "regexp and backslash" case. Fixing each of those has its own ergonomic potential. I for one would be very thrilled with raw strings. > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Stefan "not a big fan of raw= strings in ELisp" One of those rare cases I tend to disagree with Stefan. Which always feels funny, because he's most of the time right ;-) Cheers - t --J/dobhs11T7y2rNN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAmE430sACgkQBcgs9XrR2kYSrQCdHZfAWS73fnkex1aR7Lh7aien LbYAn0+hUJ3Bf5C+RRG671pjV8KpibMj =16U9 -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--