1 Jan
2002
1 Jan
'02
2:03 p.m.
Mon, 31 Dec 2001 22:52:44 -0800, Feuer <feuer@his.com> pisze:
I don't understand how a type can be considered an instance of a class if it doesn't provide all the methods of that class.
1. A method can have a default definition. 2. A missing method definition is assumed to be bottom. (I don't like this rule. Ghc with suitable options warns in such case.) The first point is important. It's possible that an overloaded function in the next version of a library is promoted to a method with a default definition, and then existing code using that class doesn't break. -- __("< Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/ \__/ ^^ QRCZAK
9005
Age (days ago)
9005
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marcin 'Qrczak' Kowalczyk