Announcement: PCOND

December 10th, 2007

Have you ever wanted to perform pattern matching, bind variables, and do conditional branching all with one handy macro?

Well now you can!

I’ve just released a library called PCOND. I’ve posted about it before. You can read about it on cliki.

Basically, it’s a pattern matching conditional macro.  Imagine COND with unification expressions and regular expression matching.

And a surprise for tomorrow . . .

While I was creating the ASDF package and setting up the ASDF-Install, I thought of something. Two packages that PCOND depends on, CL-UNIFICATION and LISP-UNIT, are not ASDF-Installable.  This basically means that my package is not as simple as just ASDF-Installing my package for the users that don’t already have the dependencies.

So I had an idea . . . which you’ll read about tomorrow!

Popularity: 2% [?]


3 Responses to “Announcement: PCOND”

  1. Brian Rowe on December 10, 2007 10:48 pm

    This looks really cool! Thank you!

    I’m excited to find out what your idea was.

  2. Thomas F. Burdick on December 11, 2007 6:13 am

    Just a little note: it sounds like your package should only have one dependency, cl-unification. lisp-unit is one of the tools you use to develop/maintain your library, but presumably it’s not actually needed to *use* your library. If you put something like this in your system definition:

    in-order-to ((test-op (load-op “lisp-unit”)))

    then you’ll only depend on lisp-unit when performing your test-op. Or just make a pcond-test system.

  3. admin on December 11, 2007 7:26 pm

    I’ve actually chosen the second option. The PCOND-TEST system requires LISP-UNIT.

    Thanks for the comment.

Trackback URI | Comments RSS

Leave a Reply

Name (required)

Email (required)

Website

Speak your mind