all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <md5i@md5i.com>
To: Andy Wingo <wingo@pobox.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: match facility
Date: Tue, 21 Aug 2012 18:26:03 -0400	[thread overview]
Message-ID: <87harvanlw.fsf@maru.md5i.com> (raw)
In-Reply-To: <87a9xodkax.fsf@pobox.com> (Andy Wingo's message of "Tue, 21 Aug 2012 23:09:10 +0200")

Andy Wingo <wingo@pobox.com> writes:

> One of the things I have most enjoyed about the Guile 2.0 series is that
> it bundles a pattern matcher.  I love using pattern matchers to
> destructure data -- it feels really nice.
>
> I needed to match some Elisp data recently, so I wrote the following
> matcher.  What do you think about it?  If you like it, I can do the
> paperwork.

Just so you know, I think this is already in elisp.  Take a look at
pcase:

pcase is an autoloaded Lisp macro in `pcase.el'.

(pcase EXP &rest CASES)

Perform ML-style pattern matching on EXP.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



  reply	other threads:[~2012-08-21 22:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21 21:09 match facility Andy Wingo
2012-08-21 22:26 ` Michael Welsh Duggan [this message]
2012-08-22  6:26   ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87harvanlw.fsf@maru.md5i.com \
    --to=md5i@md5i.com \
    --cc=emacs-devel@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.