From: "Nathaniel Gray" <n8gray@gmail.com>
To: "Jim Farrand" <jim@farrand.net>
Cc: "Caml Mailing List" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Typeclasses in OCaml (Was: Haskell vs OCaml)
Date: Thu, 14 Aug 2008 13:53:24 -0700 [thread overview]
Message-ID: <aee06c9e0808141353ud1d1693q82f4c2a8cf44b94a@mail.gmail.com> (raw)
In-Reply-To: <e16c7bcd0808140746r4cd42fedo4fb6474d687274c4@mail.gmail.com>
On Thu, Aug 14, 2008 at 7:46 AM, Jim Farrand <jim@farrand.net> wrote:
> 2008/8/14 Peng Zang <peng.zang@gmail.com>:
>
>> In Haskell you can write a function that takes anything that is "showable" (a
>> type class) and print it out. The sig would be something like (I'm mixing
>> OCaml and Haskell syntax here, but hopefully the point is still clear):
>
> Out of curiosity, are there any theoretical reasons why OCaml could
> not be extended with type classes? They are one of my favourite
> features of Haskell, and I think they would really improve OCaml.
It could be done. See this paper from POPL '07:
http://portal.acm.org/citation.cfm?id=1190215.1190229
Cheers,
-n8
--
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->
next prev parent reply other threads:[~2008-08-14 20:53 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
2008-08-14 20:53 ` Nathaniel Gray [this message]
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=aee06c9e0808141353ud1d1693q82f4c2a8cf44b94a@mail.gmail.com \
--to=n8gray@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=jim@farrand.net \
/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).