From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Raw string literals in Emacs lisp. Date: Sat, 26 Jul 2014 10:19:08 +0900 Message-ID: <878ungor1v.fsf@uwakimon.sk.tsukuba.ac.jp> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1406337587 7016 80.91.229.3 (26 Jul 2014 01:19:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2014 01:19:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Matthew Plant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 26 03:19:38 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XAqe6-0006mw-Gk for ged-emacs-devel@m.gmane.org; Sat, 26 Jul 2014 03:19:34 +0200 Original-Received: from localhost ([::1]:57422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAqe5-0000fg-M4 for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2014 21:19:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAqdw-0000fS-1x for emacs-devel@gnu.org; Fri, 25 Jul 2014 21:19:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAqdn-0004vM-9d for emacs-devel@gnu.org; Fri, 25 Jul 2014 21:19:23 -0400 Original-Received: from mgmt1.sk.tsukuba.ac.jp ([130.158.97.223]:35363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAqdm-0004uy-V0 for emacs-devel@gnu.org; Fri, 25 Jul 2014 21:19:15 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 9739D3FA0B1B; Sat, 26 Jul 2014 10:19:08 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 896E31A28DD; Sat, 26 Jul 2014 10:19:08 +0900 (JST) In-Reply-To: X-Mailer: VM undefined under 21.5 (beta34) "kale" acf1c26e3019 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.223 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173159 Archived-At: Matthew Plant writes: > What if we assume that any string surrounded immediately by > parenthesis is a raw string literal? Please don't. SXEmacs and XEmacs have had rawstring literals for many years using the syntax #r"...". It may not be the best way to do this, but it's (Common) Lisp-y, the prefix notation is familiar from at least one popular non-Lisp language (Python), and it's about as short a notation as you can imagine (I don't recall why #"..." was out, though). Use of parens for this purpose is likely to have wide-ranging implications, as it means that they no longer have unambiguous semantics, but require lookahead to interpret.