I remember seeing a design for a language (never implemented) where constraints would determine the class... In other words, when the constraint store realizes your Rectangle has equal sides, the system makes it an instance of Square.
Interesting idea. Includes a link to Easel (which doesn't implement unification - see main link).
Meanwhile, on another mailing list, Oleg blows everyone away by implementing RefMonads in pure Haskell (nice twist in the next few emails in that thread, too).
Posted to Logic/Declerative by andrew cooke on 6/4/03; 4:30:51 AM
|
|