[racket] match plus #:super structs => no nice fit?
Just in case: John, yo know you can write (struct b a (f3)) to
statically declare the super struct, right?
Robby
On Tue, Sep 21, 2010 at 4:31 PM, John Clements
<clements at brinckerhoff.org> wrote:
> 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
>
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users
>