caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Prevost <j.prevost@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Peut on unifier foncteurs et objets ?
Date: Fri, 6 Aug 2004 11:29:17 -0400	[thread overview]
Message-ID: <d849ad2a04080608291eee1c16@mail.gmail.com> (raw)
In-Reply-To: <Pine.A41.4.44.0408061101010.618570-100000@ibm1>

Please forgive me if I make some mistakes in interpreting your
message.  My French is not good at all.

I believe the message was talking about the merging of
modules/functors and objects, and how there is a lot of redundancy in
O'Caml already, and that's not necessarily a bad thing.

My feeling about modules and objects is not that they should be in any
way unified--they do indeed serve different roles.  What I *would*
like to see is a bit better support when the two things are used
together.  The recent thread about how to write the functor such that
it takes in a module with a class in it and uses that class is a good
example of a rough spot--you can manipulate the type part of a class
like it is a type.  You can wrap the "new blah" construct in an actual
function.  But you cannot truly express in a functor that "module F (A
: MT_Having_Class_Cl) : MT_Having_Other_Class_Cl with class cl = A.cl"

It is this sort of difficulty that can scare a user of objects away
from using functors, even when functors do suit their needs admirably.
 I'd also suggest that some advanced examples of modules and functors
sans objects might be nice to have in the manual--but that's really
something that can be done by the community (and outside the manual.)

John.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2004-08-06 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-06 10:14 Diego Olivier Fernandez Pons
2004-08-05 23:48 ` Christophe Raffalli
2004-08-06 15:29 ` John Prevost [this message]
2004-08-06 15:43   ` Diego Olivier Fernandez Pons

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=d849ad2a04080608291eee1c16@mail.gmail.com \
    --to=j.prevost@gmail.com \
    --cc=caml-list@inria.fr \
    /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).