From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Raw string literals in Emacs lisp. Date: Fri, 25 Jul 2014 21:15:07 +0100 Message-ID: <87bnsdkxf8.fsf@gnu.org> References: <87fvhpky9m.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406319451 27086 80.91.229.3 (25 Jul 2014 20:17:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 20:17:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Matthew Plant Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 25 22:17:25 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 1XAlvg-0008Lm-2k for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2014 22:17:24 +0200 Original-Received: from localhost ([::1]:56578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAlvf-0002nB-Au for ged-emacs-devel@m.gmane.org; Fri, 25 Jul 2014 16:17:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAlvW-0002lr-GF for emacs-devel@gnu.org; Fri, 25 Jul 2014 16:17:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAlvQ-000265-I8 for emacs-devel@gnu.org; Fri, 25 Jul 2014 16:17:14 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:51680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAlvQ-000261-EN for emacs-devel@gnu.org; Fri, 25 Jul 2014 16:17:08 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by gateway1.nyi.internal (Postfix) with ESMTP id F12F322810 for ; Fri, 25 Jul 2014 16:17:07 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 25 Jul 2014 16:17:07 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=2y3/Y19chFt6DbT5bBVUIqkvkAo=; b=CUNBymkCdkph1wrnqxsR3eXQzbLY 2PECsCxHOIdn1meMHL7jt/di+qGkzDArFu6QZMJjrL20YGTL5PGSv8jvLahOV8KW d3HWfAaw+YdU3HBK7AO1oolcNQ2AfWtxyqSoNinm4Cv6DtF1b2lCyUsBmTzT8kmQ GhVW+hk8ci8/P0g= X-Sasl-enc: Rki7QUksf19OUzmYzAy1wSz+YawY7K4dsnpEtLJ9Vc3E 1406319427 Original-Received: from thinkpad-t440p (unknown [144.32.240.86]) by mail.messagingengine.com (Postfix) with ESMTPA id 799436800FE; Fri, 25 Jul 2014 16:17:07 -0400 (EDT) Mail-Followup-To: Matthew Plant , emacs-devel@gnu.org In-Reply-To: (Matthew Plant's message of "Fri, 25 Jul 2014 13:06:18 -0700") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 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:173152 Archived-At: Matthew Plant writes: > I would argue that is still workable, through various hacks. In the cond > case if you wanted to specify I raw string literal you would do > (("default")), which I think is still illegal. Yes, that's illegal. But why not #"foo" (like in Clojure regexps)? Or SXEmacs version of raw strings #r"foo"? To me, that reads much better than ("foo") and is much less ambiguous. Bye, Tassilo >> > What if we assume that any string surrounded immediately by >> > parenthesis is a raw string literal? I'm pretty sure every instance >> > of ("...") is currently illegal,... >> >> Nope, inside a `cond', ("default") is a short alternative for (t >> "default").