From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Plant Newsgroups: gmane.emacs.devel Subject: Re: Raw string literals in Emacs lisp. Date: Fri, 25 Jul 2014 22:28:18 -0700 Message-ID: References: <878ungor1v.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158b7a61e400204ff11f528 X-Trace: ger.gmane.org 1406352520 15418 80.91.229.3 (26 Jul 2014 05:28:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jul 2014 05:28:40 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 26 07:28:33 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 1XAuX2-00081M-BT for ged-emacs-devel@m.gmane.org; Sat, 26 Jul 2014 07:28:32 +0200 Original-Received: from localhost ([::1]:57874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAuX1-0003AE-N1 for ged-emacs-devel@m.gmane.org; Sat, 26 Jul 2014 01:28:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAuWv-0003A9-1j for emacs-devel@gnu.org; Sat, 26 Jul 2014 01:28:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAuWq-00086a-7M for emacs-devel@gnu.org; Sat, 26 Jul 2014 01:28:24 -0400 Original-Received: from mail-la0-f47.google.com ([209.85.215.47]:62187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAuWq-00086S-0B for emacs-devel@gnu.org; Sat, 26 Jul 2014 01:28:20 -0400 Original-Received: by mail-la0-f47.google.com with SMTP id mc6so3653350lab.6 for ; Fri, 25 Jul 2014 22:28:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ELWvwdyBvzksL4G7yL7BQxBm0cvn+U+xhhn3VT0w/ns=; b=XKnWhJvrPsFM/ZL1FLaQaHj71GMXTuTz1RW7k/4Ww5ui35Ts6q2kXb36FpfNYGrBpY 65nzkNYGf5Mfo+2xX/kD1zl7XH3hQGBGtYG5s+ARD0aX27RPAG8zHMJyPfRn35Jzg5QJ SlZ1zhwr7F2/FPBeHlgjA9Krwg+hPxrO5gvqFs0X4edNv9W4QWzLabhaIYzdcly91AJX C7g7/fkh7wOk8TQ6R2W86+6I6mnxbytYKLQstBLsw3JHUTte0yOlBYqkMEX1l2wNbwhb HbcXGogM4WjOQXpxYgIxMXxNZBuL4WS0xuFH67zlAs+EmdSvEj4EOMEv+ZfpPTY9O5Kz LEfw== X-Gm-Message-State: ALoCoQnDV5NX4kxm/1kKS0cN96WEGH6wAGs3xdcDmJMIvK8oiQOm3HTAXD3eBb2Gmt3X19XxWkPe X-Received: by 10.152.23.225 with SMTP id p1mr20218633laf.13.1406352498760; Fri, 25 Jul 2014 22:28:18 -0700 (PDT) Original-Received: by 10.112.185.99 with HTTP; Fri, 25 Jul 2014 22:28:18 -0700 (PDT) In-Reply-To: <878ungor1v.fsf@uwakimon.sk.tsukuba.ac.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.215.47 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:173164 Archived-At: --089e0158b7a61e400204ff11f528 Content-Type: text/plain; charset=UTF-8 Yes, I agree. I suggested it due to a misinterpretation of lisps rules. I would still like to implement #"..." but I'm not sure it would be accepted. On Friday, July 25, 2014, Stephen J. Turnbull wrote: > 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. > > > > --089e0158b7a61e400204ff11f528 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes, I agree. I suggested it due to a misinterpretation of lisps rules. I w= ould still like to implement #"..." but I'm not sure it would= be accepted.

On Friday, July 25, 2014, Stephen J. Turnbull <stephen@xemacs.org> wrote:
Matthew Plant writes:

=C2=A0> What if we assume that any string surrounded immediately by
=C2=A0> parenthesis is a raw string literal?

Please don't. =C2=A0SXEmacs and XEmacs have had rawstring literals for = many
years using the syntax #r"...". =C2=A0It 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.



--089e0158b7a61e400204ff11f528--