[racket] match plus #:super structs => no nice fit?

From: John Clements (clements at brinckerhoff.org)
Date: Tue Sep 21 17:31:54 EDT 2010

It looks to me like match doesn't work nicely with #:super structs.  For instance, this program:

#lang racket

(struct a (f1 f2))
(struct b (f3) #:super struct:a)

(match 'whocares
  [(struct b (f1 f2 f3)) 13])


signals the error:

match: wrong number for fields for structure b: expected 1 but got 3 in: (f1 f2 f3)


It's easy to work around this, but it would be nice if it worked.  Am I missing something obvious?

John 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20100921/e4e18d78/attachment.p7s>

Posted on the users mailing list.