[gambit-list] destructuring bind define-type

David Rush kumoyuki at gmail.com
Tue Jun 2 17:12:35 EDT 2009

2009/6/2 David Rush <kumoyuki at gmail.com>:
> 2009/6/2 lowly coder <lowlycoder at huoyanjinjing.com>:
>> Now, ideally I want to write:
>> (destructure-bind (cons (p3 x1 y1 z1) (p3 x2 y2 z2))
>>   (make-point3 (+ x1 x2) (+ y1 y2) (+ z1 z2)))

I should add that if you really want generic pattern matching, that
such packages do exist for Scheme, although I am not sure that there
are any written in R[45]RS compatible dialects - they may all be
implementation specific. Troll c.l.s on google or just ask about
structural pattern matching...

GPG Public key at http://cyber-rush.org/drr/gpg-public-key.txt

More information about the Gambit-list mailing list