Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Type Classes and Module Types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Type Classes and Module Types


Chronological Thread 
  • From: Scott Lawrence <srl AT umd.edu>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Type Classes and Module Types
  • Date: Wed, 27 May 2015 15:50:27 -0400 (EDT)

Hi all,

Many of the same things can be done via `Module Type` and `Module` as with `Class` and `Instance`. Are there any good rules of thumb for when to use which? For example, either could be used to define VectorSpace < NormedVectorSpace < BanachSpace -- is there a reason to pick one over the other?

(Somewhat pettily, I find the syntax resulting from using the module system to be far cleaner. I also note that the documentation declares type classes to be very experimental.)

Thanks,

--
Scott Lawrence



Archive powered by MHonArc 2.6.18.

Top of Page