Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Re: What are type classes?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Re: What are type classes?


chronological Thread 
  • From: Victor Porton <porton AT narod.ru>
  • To: coq-club AT inria.fr
  • Subject: [Coq-Club] Re: What are type classes?
  • Date: Wed, 02 Nov 2011 03:32:54 +0400
  • Envelope-from: porton AT yandex.ru

02.11.2011, 02:16, "Jelle Herold" 
<jelle AT defekt.nl>:

> šOn Nov 1, 2011, at 10:38 PM, Victor Porton wrote:
>> ššWhat is the difference between type classes and dependent records?
> šI'm am by no means an expert, but I'm pretty sure they will join this 
> discussion soon enough to correct my mistakes :)

http://coq.inria.fr/cocorico/TypeClasses :

When you define a type class using Class, all of its members will be declared 
such that the argument for the instance is implicit. If you would prefer that 
this were not the case, simply use Structure instead. They are identical 
except for this one difference.

And in Coq reference it is said:

Structure is a synonym of the keyword Record.

Thus the only difference is presence of implicit arguments. Right? What 
experts can say?

--
Victor Porton - http://portonvictor.org



Archive powered by MhonArc 2.6.16.

Top of Page