unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* record-case?
@ 2010-11-05 20:53 Noah Lavine
  2010-11-05 21:40 ` record-case? Stefan Israelsson Tampe
  2010-11-07 22:54 ` record-case? Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Noah Lavine @ 2010-11-05 20:53 UTC (permalink / raw)
  To: guile-devel

Hello,

I was just reading module/language/tree-il/compile-glil.scm, and I
noticed it used a construct called 'record-case'. It looked neat, but
I didn't see documentation for it in any of the obvious places in the
manual (the section on records or the pattern-matching section). Is it
public? If so, is there documentation somewhere?

Thanks,
Noah Lavine



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: record-case?
  2010-11-05 20:53 record-case? Noah Lavine
@ 2010-11-05 21:40 ` Stefan Israelsson Tampe
  2010-11-07 22:54 ` record-case? Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Israelsson Tampe @ 2010-11-05 21:40 UTC (permalink / raw)
  To: guile-devel

On Friday, November 05, 2010 09:53:15 pm Noah Lavine wrote:
> Hello,
> 
> I was just reading module/language/tree-il/compile-glil.scm, and I
> noticed it used a construct called 'record-case'. It looked neat, but
> I didn't see documentation for it in any of the obvious places in the
> manual (the section on records or the pattern-matching section). Is it
> public? If so, is there documentation somewhere?
> 
> Thanks,
> Noah Lavine

Yes it looks like a cool thing, code for it is in
(use-moules (system base syntax)) 

There you see how it works ;-) But perhaps the author can point
to the pros and cons.

Cheers
/Stefan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: record-case?
  2010-11-05 20:53 record-case? Noah Lavine
  2010-11-05 21:40 ` record-case? Stefan Israelsson Tampe
@ 2010-11-07 22:54 ` Ludovic Courtès
  2010-11-20 21:52   ` record-case? Andy Wingo
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2010-11-07 22:54 UTC (permalink / raw)
  To: guile-devel

Hello,

Noah Lavine <noah.b.lavine@gmail.com> writes:

> I was just reading module/language/tree-il/compile-glil.scm, and I
> noticed it used a construct called 'record-case'. It looked neat, but
> I didn't see documentation for it in any of the obvious places in the
> manual (the section on records or the pattern-matching section). Is it
> public? If so, is there documentation somewhere?

I find it limited and would rather add record matching support in
(ice-9 match), something I’ve been willing to look at for too long...

  http://news.gmane.org/gmane.lisp.guile.devel/10213
  http://news.gmane.org/gmane.lisp.guile.devel/10277

Said support is actually available upstream (in the ChibiScheme repo) so
it should be quite simple.

Thanks,
Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: record-case?
  2010-11-07 22:54 ` record-case? Ludovic Courtès
@ 2010-11-20 21:52   ` Andy Wingo
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2010-11-20 21:52 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guile-devel

On Sun 07 Nov 2010 23:54, ludo@gnu.org (Ludovic Courtès) writes:

> Noah Lavine <noah.b.lavine@gmail.com> writes:
>
>> 'record-case' [...] looked neat
>
> I find it limited and would rather add record matching support in
> (ice-9 match), something I’ve been willing to look at for too long...
>
>   http://news.gmane.org/gmane.lisp.guile.devel/10213
>   http://news.gmane.org/gmane.lisp.guile.devel/10277
>
> Said support is actually available upstream (in the ChibiScheme repo) so
> it should be quite simple.

Agreed, though perhaps a first step would be (after getting record
support into match.scm) making an implementation of record-case in terms
of ice-9 match. Should be simple.

Regards,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-20 21:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-05 20:53 record-case? Noah Lavine
2010-11-05 21:40 ` record-case? Stefan Israelsson Tampe
2010-11-07 22:54 ` record-case? Ludovic Courtès
2010-11-20 21:52   ` record-case? Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).