From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: cannot compile: srfi-10 define-reader-ctor 'hash '#,( Date: Sun, 17 Aug 2014 17:08:14 +0200 Message-ID: <87egwfi275.fsf@gnu.org> References: <87y4w9jog8.fsf@drakenvlieg.flower> <874myvudnk.fsf@gnu.org> <87y4vaf3fr.fsf@drakenvlieg.flower> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1408380546 17331 80.91.229.3 (18 Aug 2014 16:49:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2014 16:49:06 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Aug 18 18:48:57 2014 Return-path: Envelope-to: guile-user@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 1XJQ76-0000C8-S3 for guile-user@m.gmane.org; Mon, 18 Aug 2014 18:48:56 +0200 Original-Received: from localhost ([::1]:44770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJQ76-0006tP-IX for guile-user@m.gmane.org; Mon, 18 Aug 2014 12:48:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJQ6s-0006qr-Fi for guile-user@gnu.org; Mon, 18 Aug 2014 12:48:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJQ6m-0006Ol-Os for guile-user@gnu.org; Mon, 18 Aug 2014 12:48:42 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:38350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJQ6m-0006OA-Ic for guile-user@gnu.org; Mon, 18 Aug 2014 12:48:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJQ6l-0008QY-7z for guile-user@gnu.org; Mon, 18 Aug 2014 18:48:35 +0200 Original-Received: from adijon-554-1-104-225.w90-26.abo.wanadoo.fr ([90.26.84.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 18:48:35 +0200 Original-Received: from ludo by adijon-554-1-104-225.w90-26.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2014 18:48:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adijon-554-1-104-225.w90-26.abo.wanadoo.fr User-Agent: Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 Thermidor an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Cancel-Lock: sha1:c5NbnRX5ePIZDd3EZcPHYGu+5qg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11432 Archived-At: Neil Jerram skribis: > I wonder about possibly having some magic that would automatically > match certain top-level forms and evaluate them at compile time. The > case for this for 'define-reader-ctor' feels quite strong. For the > load path case, it feels too hacky to try to recognize patterns like > (set! %load-path (append %load-path ...))', but perhaps OK if we > defined an 'add-to-load-path' procedure and applied the magic to that. > > What do you think? Would that be too magical? Yes, I think so. :-) Separation of concerns means that the compiler does not have to know about SRFI-10 or any other library, but instead just provides ‘eval-when’ as a mechanism to express what we want in such cases. Thanks, Ludo’.