caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Difference between [ `A ] and [< `A ]
@ 2011-05-10 16:46 Dario Teixeira
  2011-05-10 23:44 ` Jacques Garrigue
  0 siblings, 1 reply; 3+ messages in thread
From: Dario Teixeira @ 2011-05-10 16:46 UTC (permalink / raw)
  To: caml-list

Hi,

I've seen OCaml code "in the wild" where both of the following signatures
are present: (the type parameter for 't' is a phantom type)

  val foo: [< `A ] t -> unit
  val bar: [ `A ] t -> unit

But is there any practical difference between [ `A ] and [< `A ] given
that there is only one element in the set?

Thanks in advance!
Kind regards,
Dario Teixeira



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-11 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 16:46 [Caml-list] Difference between [ `A ] and [< `A ] Dario Teixeira
2011-05-10 23:44 ` Jacques Garrigue
2011-05-11 15:47   ` Christophe Raffalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).