From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylan Ulrich Bayirli/Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: cannot compile: srfi-10 define-reader-ctor 'hash '#,( Date: Thu, 14 Aug 2014 12:27:35 +0200 Message-ID: <877g2bxt60.fsf@taylan.uni.cx> 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 X-Trace: ger.gmane.org 1408012082 7640 80.91.229.3 (14 Aug 2014 10:28:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 10:28:02 +0000 (UTC) Cc: guile-user@gnu.org To: Neil Jerram Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Aug 14 12:27:54 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 1XHsG7-0003iW-PN for guile-user@m.gmane.org; Thu, 14 Aug 2014 12:27:51 +0200 Original-Received: from localhost ([::1]:53137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHsG7-0002Tj-7h for guile-user@m.gmane.org; Thu, 14 Aug 2014 06:27:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHsFy-0002Ta-RB for guile-user@gnu.org; Thu, 14 Aug 2014 06:27:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHsFx-0006sM-N9 for guile-user@gnu.org; Thu, 14 Aug 2014 06:27:42 -0400 Original-Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:54665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHsFx-0006rz-Fz for guile-user@gnu.org; Thu, 14 Aug 2014 06:27:41 -0400 Original-Received: by mail-lb0-f173.google.com with SMTP id u10so812715lbd.4 for ; Thu, 14 Aug 2014 03:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=vPGAqm56OjrKrpGZciqd40LBQQhHzVe5PTndZNmI7cs=; b=L36DgmvweHFdP92FtxF5c0p23R+0QDuQ8Y7D5Zfge+NjJf7MhwCBbgmBc8N8NVuE1v lV9cC30MkzT0IW/l/bSNfCD9VA9C8aMFZPfV24ZTUeQBJ4Bel4HM9QPydPtd9NylHX0m yv+0x6sw1AtFajTKP6HE/jYKPLzxKG9ZuEJjc6gLmpuJr78TBy+tZme6JyIfs/GF7bBK yPAjFrTxovbLkNivjaEsPLLMy/5Wvs1VqaY07FAsb1G7I9eNl+n8g4hPT6d43yQkBl6s //+FWzbhLndHEU5hZ+45i//XfxAXbS73oqlcPXee69BBc8sGzUDsQj9WMIHAf3HiDUgI P02w== X-Received: by 10.152.205.8 with SMTP id lc8mr3990541lac.57.1408012057455; Thu, 14 Aug 2014 03:27:37 -0700 (PDT) Original-Received: from taylan.uni.cx (p200300514A44E2E90213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a44:e2e9:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id k1sm2866032lah.26.2014.08.14.03.27.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Aug 2014 03:27:36 -0700 (PDT) In-Reply-To: (Neil Jerram's message of "Thu, 31 Jul 2014 12:15:07 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22d 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:11405 Archived-At: Neil Jerram writes: > 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. We already have an 'add-to-load-path' syntax. That way it doesn't need any special magic since it can just expand to an `eval-when' usage but apparently for some reason it doesn't do that at the moment (2.0.11): scheme@(guile-user)> ,expand (add-to-load-path "foo") (set! (@@ (guile) %load-path) ((@@ (guile) cons) "foo" (@@ (guile) %load-path))) Taylan