[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defstruct from (ice-9 match)
From: |
Keisuke Nishida |
Subject: |
Re: defstruct from (ice-9 match) |
Date: |
Fri, 09 Mar 2001 13:30:37 -0500 |
User-agent: |
Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.99 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Fri, 09 Mar 2001 11:29:10 -0500,
Mikael Djurfeldt wrote:
>
> 2001-03-09 Keisuke Nishida <address@hidden>
>
> * match.scm: export defstruct.
>
> A match module should only export match-related bindings. Are you
> exporting defstruct because some macro expands into it?
Andrew K. Wright's pattern matcher contains a macro `define-structure',
which expands into another macro `defstruct'. Without these macros,
we can't use the match syntax `($ <struct> <pat>...)'.
> Also, why is the source formatted without whitespace?
The source I included is not the original source but a macro-expanded
version (like psyntax.pp). Since psyntax.pp is formatted without
whitespace, I did the same.
The original source cannot be executed by Guile because it uses
`[...]' syntax for clause forms. What should we do?
Kei