caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Wolfgang Lux <wlux@uni-muenster.de>
To: "Till Varoquaux" <till.varoquaux@gmail.com>
Cc: "Jim Farrand" <jim@farrand.net>,
	Caml Mailing List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Typeclasses in OCaml (Was: Haskell vs OCaml)
Date: Fri, 15 Aug 2008 13:03:03 +0200	[thread overview]
Message-ID: <0F5010B7-5122-40CC-BCAC-A56B27D6D87F@uni-muenster.de> (raw)
In-Reply-To: <9d3ec8300808141137i2b5e606fh2f4803843ef13e88@mail.gmail.com>

Till Varoquaux wrote:

> Typw inference in haskell is not decideable (nor is it in ocaml when
> using objects) and you have to provide some type information.

Huh? The only thing that is not decidable in Haskell's type system is  
polymorphic recursion. Apart from that you do not need any type  
annotations (except in order to get around Haskell's monomorphism  
restriction, but that is a different story).

> On top of breaking inference type cleases come at a high run tine
> cost.

Type classes do not break type inference. Just read Mark P. Jones's  
papers.

Regards
Wolfgang


  reply	other threads:[~2008-08-15 11:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 14:46 Jim Farrand
2008-08-14 15:21 ` [Caml-list] " Peng Zang
2008-08-14 15:38   ` Jon Harrop
2008-08-14 16:04   ` Jim Farrand
2008-08-14 17:13     ` Peng Zang
2008-08-14 18:37     ` Till Varoquaux
2008-08-15 11:03       ` Wolfgang Lux [this message]
2008-08-14 20:53 ` Nathaniel Gray
2008-08-14 22:33   ` Erik de Castro Lopo
2008-08-15  0:21 ` Brian Hurt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0F5010B7-5122-40CC-BCAC-A56B27D6D87F@uni-muenster.de \
    --to=wlux@uni-muenster.de \
    --cc=caml-list@yquem.inria.fr \
    --cc=jim@farrand.net \
    --cc=till.varoquaux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).