
On Tue, 14 Dec 2004 15:40:13 +0000, Keith Wansbrough
On the other hand, it's difficult or impossible to make a list of a bunch of different types of things that have nothing in common save being members of the class.
I've recently been playing with making, for each class C, a "interface" datatype IC (appropriately universally and existentially qualified so as to include a dictionary for class C), and then making this IC an instance of class C. Then I can wrap any instance of C up in an IC, and make a list of those.
I think there should be standard syntax for this...
Some sort of operator for turning one or several type classes into an
interface datatype.
So you could write something like something like...
f ::