guile-devel-internal
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defstruct from (ice-9 match)


From: Mikael Djurfeldt
Subject: Re: defstruct from (ice-9 match)
Date: 10 Mar 2001 01:13:00 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Keisuke Nishida <address@hidden> writes:

> At 09 Mar 2001 22:54:46 +0100,
> Mikael Djurfeldt wrote:
> > 
> > My suggestion:
> > 
> > 1. Examine if define-record-type can replace all uses of
> >    define-structure and defstruct.
> > 
> > 2. Include an implementation of define-record-type as a separate
> >    module.
> > 
> > 3. Include the match sources in the Guile distribution.
> > 
> > 4. Edit them according to 1 and replace [...] with (...).
> > 
> > 5. Provide a way for the match module contents to be generated form
> >    the match sources, similar to psyntax.pp.
> 
> Hmm, I'm not going to do this right now.  If you think the current
> match module does not suit Guile, I'll remove it from the core.

For now, could you do the following?  (I of course still respect if
you are too busy to do it.  Please tell if that is the case.)  Don't
export defstruct.  Instead let the macros insert the macro object
itself in the output, that is change

  `(... (defstruct ...) ...)

to

  `(... (,defstruct ...) ...)

We wouldn't want people to start using the match module to get to
defstruct...

Also, we should add the source, but I guess this isn't as urgent.

I'm sure someone else can help with the SRFI-9 implementation.

BTW, how did you go about producing the expanded output?  Did you put
much own work into it or did you use the distribution verbatim?  I'm
asking it in case I get time to attack any of the points above.

Best,
Mikael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]