From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: Re: A bit further toward the flamewar Date: Fri, 14 Oct 2011 11:30:38 -0500 Message-ID: References: <20111012153958.GA20242@ccellier.rd.securactive.lan> <87pqi2ca3q.fsf@gnu.org> <8739exry15.fsf@pobox.com> <20111013112709.GA28078@ccellier.rd.securactive.lan> <87r52hc6hu.fsf@gnu.org> <87r52grk90.fsf@pobox.com> <1318531070.78010.YahooMailNeo@web37908.mail.mud.yahoo.com> <87hb3cq8n9.fsf@pobox.com> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1318609879 1439 80.91.229.12 (14 Oct 2011 16:31:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Oct 2011 16:31:19 +0000 (UTC) Cc: =?UTF-8?Q?Ludovic_Court=C3=A8s?= , "guile-user@gnu.org" To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Oct 14 18:31:15 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1REkf6-0003sv-1p for guile-user@m.gmane.org; Fri, 14 Oct 2011 18:31:08 +0200 Original-Received: from localhost ([::1]:57542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REkf5-0000zL-En for guile-user@m.gmane.org; Fri, 14 Oct 2011 12:31:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REkf0-0000z5-NO for guile-user@gnu.org; Fri, 14 Oct 2011 12:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REkez-0006OX-6c for guile-user@gnu.org; Fri, 14 Oct 2011 12:31:02 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:34208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REkey-0006ON-Rd; Fri, 14 Oct 2011 12:31:01 -0400 Original-Received: by ggdk5 with SMTP id k5so1521163ggd.0 for ; Fri, 14 Oct 2011 09:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=WwSRajleLrYh/2NOnD7fQOeIYS1EU1S3yQZtoYHkltg=; b=bb+PbP9/YkqIYCR3n9h7wxkZsOxOqpkmm8tbeZqP9HtWFSmNbl+OCmZ406MD36neGx EIL3wzCI+Jvan3HsZ6wGoywf2upniZywq3QXDSZE+wptLVyFIVEWHN11NoDIrMIQ7ubr 9ZtYqQi/0W+LER4tIOd+LiZIGazvaFHgWQenY= Original-Received: by 10.223.81.205 with SMTP id y13mr4889593fak.34.1318609859096; Fri, 14 Oct 2011 09:30:59 -0700 (PDT) Original-Received: by 10.223.3.11 with HTTP; Fri, 14 Oct 2011 09:30:38 -0700 (PDT) In-Reply-To: <87hb3cq8n9.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.169 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:8891 Archived-At: On 14 October 2011 03:28, Andy Wingo wrote: > On Thu 13 Oct 2011 23:42, Linas Vepstas writes: > >> In the code that I work on, in (func a b), its rarely the case that a >> and b are merely strings or lists; they're usually some fairly complex >> structure, where e.g. 'b' is a list where car and cadr must be >> strings, and caddr may or may not be another list, with certain >> expectations about car, cadr, etc. > > In this case, I find `match' to be useful. =C2=A0The structure of the pat= tern > matches the structure of the input data, so it is much better than > cadaddring down a list. Let me demonstrate my ignorance: what pattern-matching srfi should I be using? Last time I looked at 'match' in scheme, it was defined in some decades-old white paper Pattern Matching for Scheme http://download.plt-scheme.org/doc/103p1/pdf/match.pdf which didn't seem to be widely used anywhere. Are you saying that we have this hidden somewhere inside of guile??? --linas