From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: Guile Assembler Date: Thu, 03 Sep 2015 20:54:49 -0400 Message-ID: <878u8n0zs6.fsf@netris.org> References: <1435040921.1695.4.camel@Renee-desktop.suse> <20150623091251.GA19575@tuxteam.de> <1435051196.1695.13.camel@Renee-desktop.suse> <20150623092715.GD19575@tuxteam.de> <1435051842.1695.15.camel@Renee-desktop.suse> <20150623094526.GA20821@tuxteam.de> <20150624083420.GA25584@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441328150 13671 80.91.229.3 (4 Sep 2015 00:55:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 00:55:50 +0000 (UTC) Cc: Andy Wingo , guile-devel@gnu.org To: Panicz Maciej Godek Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Sep 04 02:55:45 2015 Return-path: Envelope-to: guile-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 1ZXfI7-00032B-OW for guile-devel@m.gmane.org; Fri, 04 Sep 2015 02:55:43 +0200 Original-Received: from localhost ([::1]:53152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXfI7-0000dU-Vm for guile-devel@m.gmane.org; Thu, 03 Sep 2015 20:55:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXfI0-0000dM-Vl for guile-devel@gnu.org; Thu, 03 Sep 2015 20:55:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXfHx-0007Bu-NP for guile-devel@gnu.org; Thu, 03 Sep 2015 20:55:36 -0400 Original-Received: from world.peace.net ([50.252.239.5]:46955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXfHx-0007Bj-9i for guile-devel@gnu.org; Thu, 03 Sep 2015 20:55:33 -0400 Original-Received: from [10.1.10.32] (helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ZXfHr-0006oQ-0U; Thu, 03 Sep 2015 20:55:27 -0400 In-Reply-To: (Panicz Maciej Godek's message of "Wed, 24 Jun 2015 23:54:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 50.252.239.5 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17818 Archived-At: Panicz Maciej Godek writes: > It is not a patch though, but just a separate module called (ice-9 > nice-9) that is meant to be placed in the "ice-9" directory (e.g. > "/usr/share/guile/2.0/ice-9"). > > It would definitely need a more elaborate documentation, but the quick > note is that it: > > * allows to destructure arguments to lambda, e.g. > > (map (lambda ((a . b)) (+ a b)) '((1 . 2)(3 . 4)(5 . 6))) > > * blends named-let with match-let and srfi-71-style let for multiple > values, legalizing usages like > > (let loop ((a (b c) (values 1 (list 2 3)))) > ... > (loop (values 4 (list 5 6)))) I only just recently noticed this message, but before people start writing a lot of code like this, I should warn you that in the procedure call (loop (values 4 (list 5 6))), by the semantics of Guile, that is supposed to be equivalent to (loop 4). If it does something else, that's probably a bug in our optimizer, and it might well act differently on our master branch already, because the multiple-values stuff has been cleaned up a lot compared with 2.0. Anyway, you certainly should not rely on this behavior. Sorry... Mark