From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Reader macros Date: Fri, 23 Jan 2015 10:33:24 +0100 Message-ID: <87sif16duj.fsf@fencepost.gnu.org> References: <54C15ECA.5050008@dancol.org> <54C18A06.7090404@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422005892 7825 80.91.229.3 (23 Jan 2015 09:38:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2015 09:38:12 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , Oleh To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 23 10:38:09 2015 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 1YEagr-0006g3-7s for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2015 10:38:09 +0100 Original-Received: from localhost ([::1]:57830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEagl-00067R-Nz for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2015 04:38:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEagY-00067M-5X for emacs-devel@gnu.org; Fri, 23 Jan 2015 04:37:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YEagX-0008TM-8k for emacs-devel@gnu.org; Fri, 23 Jan 2015 04:37:50 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEagX-0008T8-5f for emacs-devel@gnu.org; Fri, 23 Jan 2015 04:37:49 -0500 Original-Received: from localhost ([127.0.0.1]:56843 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YEagV-0000th-Rk; Fri, 23 Jan 2015 04:37:48 -0500 Original-Received: by lola (Postfix, from userid 1000) id 31F4CE07B1; Fri, 23 Jan 2015 10:33:24 +0100 (CET) In-Reply-To: <54C18A06.7090404@dancol.org> (Daniel Colascione's message of "Thu, 22 Jan 2015 15:38:46 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:181653 Archived-At: Daniel Colascione writes: > On 01/22/2015 03:36 PM, Stefan Monnier wrote: >> Maybe we could introduce a more limited form of reader macros. >> E.g. allow # and make the reader return >> >> (funcall (cdr (assq reader-macro-alist)) ) > > > That's an excellent idea. Doesn't work well where is an unmatched delimiter like ( or [. Also would not work with #r"xxx" raw strings. I think it makes more sense (like Guile does it) to make this kind of funcall not with but rather with . If indeed a sexp is wanted, calling `read' is trivial. -- David Kastrup