From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= <aconchillo@gmail.com> Newsgroups: gmane.lisp.guile.user Subject: Re: syntax-case guards Date: Sun, 3 Feb 2013 21:19:32 -0800 Message-ID: <CA+XASoXADjk7U2ZWxvEbjEgJGPn_=x5U+ETkpJWqvsCP6UPy1Q@mail.gmail.com> References: <CA+XASoXBELxXxy=Br9cAjmoVra5Q4rdb4v5LafCwK4g=RQpWAg@mail.gmail.com> <8738xc2832.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1359955183 30233 80.91.229.3 (4 Feb 2013 05:19:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2013 05:19:43 +0000 (UTC) Cc: guile-user <guile-user@gnu.org> To: Ian Price <ianprice90@googlemail.com> Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 04 06:20:03 2013 Return-path: <guile-user-bounces+guile-user=m.gmane.org@gnu.org> 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 <guile-user-bounces+guile-user=m.gmane.org@gnu.org>) id 1U2ETG-0001JP-Sm for guile-user@m.gmane.org; Mon, 04 Feb 2013 06:19:59 +0100 Original-Received: from localhost ([::1]:47676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guile-user-bounces+guile-user=m.gmane.org@gnu.org>) id 1U2ESy-00055k-6G for guile-user@m.gmane.org; Mon, 04 Feb 2013 00:19:40 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <aconchillo@gmail.com>) id 1U2ESs-00054F-TO for guile-user@gnu.org; Mon, 04 Feb 2013 00:19:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <aconchillo@gmail.com>) id 1U2ESr-0001OZ-TG for guile-user@gnu.org; Mon, 04 Feb 2013 00:19:34 -0500 Original-Received: from mail-lb0-f170.google.com ([209.85.217.170]:63645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <aconchillo@gmail.com>) id 1U2ESr-0001OQ-Lh for guile-user@gnu.org; Mon, 04 Feb 2013 00:19:33 -0500 Original-Received: by mail-lb0-f170.google.com with SMTP id ge1so6347766lbb.1 for <guile-user@gnu.org>; Sun, 03 Feb 2013 21:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Uw17hBxA2AKLPxqlRV4X7/asKY+8RE8al7BoJ8lDE8M=; b=1BHjXzEQHaxqYK1qJ6aCrFIHOV0YFNxavSxynJaWBWgyIgZgGbUl0jC+cWSsPmth0v WR0gXSyBv7yqh1EuqN14zJYduBPgYfpz5l5/pNH61N50UnmnqKY64VoeqdzEWh5bgbdK CiTd52LcgKL47hXhf4bkWreXrB9tJ9cDt7Lq9wj6t1ECgqG0sazSt9kXmu/EaAxyZMJz 4SHaGuvkVOf94sNEhZeLALsJaPJSV8lvugba6DTSQYVtQ/hL/mhA60C/VcN1ABgsGxI3 G+xcfZkXIPD3TruxV2y6B/DDhapXVG/PhxR/+QeuTU/q8GV5LGrfXRVTwNrZVLqfaeNA bKJw== X-Received: by 10.152.106.5 with SMTP id gq5mr18170169lab.5.1359955172340; Sun, 03 Feb 2013 21:19:32 -0800 (PST) Original-Received: by 10.112.90.5 with HTTP; Sun, 3 Feb 2013 21:19:32 -0800 (PST) In-Reply-To: <8738xc2832.fsf@Kagami.home> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.170 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions <guile-user.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guile-user>, <mailto:guile-user-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guile-user> List-Post: <mailto:guile-user@gnu.org> List-Help: <mailto:guile-user-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guile-user>, <mailto:guile-user-request@gnu.org?subject=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:10010 Archived-At: <http://permalink.gmane.org/gmane.lisp.guile.user/10010> On Sun, Feb 3, 2013 at 5:14 PM, Ian Price <ianprice90@googlemail.com> wrote: > > You were probably wanting this to apply to each and every k > individually? syntax-case does not work this way. Patterns with ellipsis > are expected to be matched with templates with ellipsis. Sorry. > Yes. I see. > using every from (srfi srfi-1) or for-all from (rnrs lists) [same > procedure different name] you get > > (every (compose string? syntax->datum) #'(k ...)) > Great, that did it!. > As an aside, this won't work in Racket, since they also make lists into > syntax objects, unlike psyntax or the r6rs. > By now, this doesn't worry much, but good to know. Thank you so much, Aleix