caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jacques Garrigue <Jacques.Garrigue@inria.fr>
To: pfitzen@informatik.uni-tuebingen.de
Cc: caml-list@inria.fr
Subject: Re: Objective Label 2.04
Date: Thu, 02 Dec 1999 10:36:49 +0100	[thread overview]
Message-ID: <19991202103649W.garrigue@pauillac.inria.fr> (raw)
In-Reply-To: Your message of "Tue, 30 Nov 1999 16:42:56 +0100 (MET)" <199911301542.QAA19049@sunray.informatik.uni-tuebingen.de>

From: Juergen Pfitzenmaier <pfitzen@informatik.uni-tuebingen.de>

> Jacques Garrigue wrote:
> >    * are using polymorphic methods. For technical reasons, this
> >     feature will probably not be included soon in OCaml.
> 
> Why ? Polymorphic methods are the best part of OLabl. It should'nt
> be too hard to move code from OLabl to the OCaml distribution ?

The reason is that there was a major efficiency problem in olabl
typechecking, due to these methods. It can also produce huge .cmi
files. As long as these problems are not solved, it seems difficult to
include them in the production ocaml compiler.

Also, my experience with using them is contrasted. It is certainly a
nice feature, but not so easy to use: you have to give explicitly the
type when creating a method, and you need to know the type of the
object when using it.
They are not strictly needed, in that you can almost always write a
non-polymorphic method and a polymorphic function which calls it.

For all these reasons, inclusion of polymorphic methods into the
standard ocaml compiler is postponed until a more sarisfactory
solution is found.

As an intermediate solution, I may write a patch adding polymorphic
methods to the new ocaml compiler, as an experimental feature.

By the way, I do not think that polymorphic methods are the _best_
part of olabl. As its name goes, I believe that really labels are the
nice part... But anybody may choose its pet feature.

Regards,

Jacques Garrigue
------------------------------------------------------
Jacques Garrigue, visiting INRIA from Kyoto University
		          Jacques.Garrigue at inria.fr




  reply	other threads:[~1999-12-02 10:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-30 15:42 Juergen Pfitzenmaier
1999-12-02  9:36 ` Jacques Garrigue [this message]
1999-12-03 23:34   ` Brian Rogoff
  -- strict thread matches above, loose matches on Subject: below --
1999-11-29 14:34 Jacques Garrigue

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=19991202103649W.garrigue@pauillac.inria.fr \
    --to=jacques.garrigue@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=pfitzen@informatik.uni-tuebingen.de \
    /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).