[racket] Implementing an generic interface outside of a struct definition

From: Vincent St-Amour (stamourv at ccs.neu.edu)
Date: Thu Sep 5 11:37:27 EDT 2013

You can use the `#:defaults' clause of `define-generics' for that. The
documentation included in recent snapshots includes examples of its use:

    http://www.cs.utah.edu/plt/snapshots/current/doc/reference/struct-generics.html

You can also use it to make basic datatypes (strings, numbers, etc.)
implement a generic interface.

Vincent


At Thu, 05 Sep 2013 16:47:52 +0200,
Konrad Hinsen wrote:
> 
> Is it possible to implement a generic interface outside of a struct
> definition, i.e.. for a struct that is already defined? I didn't find
> anything about this in the documentation.
> 
> Konrad.
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.