Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] [Q]: Co(ntra)variance and subtyping?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-11-17 (14:56)
From: Mark Wotton <mrak@c...>
Subject: Re: [Caml-list] [Q]: Co(ntra)variance and subtyping?
On Sun, 18 Nov 2001, Mark Wotton wrote:

> On Fri, 16 Nov 2001, Clemens Hintze wrote:
> > Two things I would like to ask you right now:
> > 
> > - What does subtyping exactly mean in OCaml resp. functional
> >   programming?
> > - What means covariance and contravariance of types and subtypes?
> Not being an Ocaml guru, I shan't attempt the first question.
> The second's pretty easy, though: covariance is the sane way of doing OO,
> and contravariance is bizarre. (Right, if there's any Eiffel devotees on
> here, I've just started a flamewar. :)

Of course, in a post talking about someone else's English, it's almost
inevitable that I'm going to get it wrong myself. s/there's/there are/g.

looking forward to the mistake in this one.

Bug reports:  FAQ:
To unsubscribe, mail  Archives: