This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Polymorphism in Scheme (Re: records)
- To: forcer <forcer@mindless.com>
- Subject: Re: Polymorphism in Scheme (Re: records)
- From: Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
- Date: 04 Aug 1999 22:15:47 +0200
- Cc: guile@sourceware.cygnus.com
- Cc: djurfeldt@nada.kth.se
- References: <199907210938.CAA16432@mingle.glug.org> <m37lnsya34.fsf@savonarola.red-bean.com> <p2tiu7cbpdf.fsf@grapefruit.zrz.tu-berlin.de> <3794F0DA.ECEF06EC@tech.com.au> <p2temhz4jlt.fsf@grapefruit.zrz.tu-berlin.de> <37986F16.2750BBBB@tech.com.au> <p2tu2qvp7u3.fsf@grapefruit.zrz.tu-berlin.de> <37990441.DF571BFE@tech.com.au> <p2temhy454r.fsf@grapefruit.zrz.tu-berlin.de> <hhoggn769n.fsf_-_@forcix.roof.lan>
forcer <forcer@mindless.com> writes:
> I'd call this quite nice ad-hoc polymorphism.
> This implementation uses define-syntax which guile still lacks,
> sadly.
While I agree that it is sad, the degree of lacking isn't quite enough
to grant the term "lacks".
Try (use-syntax (ice-9 syncase)) or (use-module (ice-9 syncase)).
The former is more correct. The latter is correct in almost all cases
and more efficient.