caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <raffalli@univ-savoie.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Turning off type-checking
Date: 14 May 2002 12:33:00 +0200	[thread overview]
Message-ID: <1021372380.20927.117.camel@d85.lama.univ-savoie.fr> (raw)
In-Reply-To: <Pine.SOL.4.44.0205141001400.3093-100000@clipper.ens.fr>

Le mar 14/05/2002 à 10:20, Alain Frisch a écrit :
 
> Mmm, I thought (misleaded by a teacher, of course) that the following
> would exhibit exponential behavior of type-inference:
> 
> let f y z = (z y) y
> let f y = f (f y)
> let f y = f (f y)
> let f y = f (f y)
> let f y = f (f y)
> let f y = f (f y)
> (* ad libitum *)
> 
> It seems that what takes time is occurence checking (disabled
> with -rectypes) and pretty-printing of types (because internally, there

For pretty printing, why not printing types with sharing like

val f : type 'b = 'a -> 'a in 'b -> 'b.

For large type it can be easier to read (especially if you could choose
the name of type variables):

# let f x:'c = x;;
val f : 'a -> 'a = <fun>

Is very ennoying and should really be

# let f x:'arg = x;;
val f : 'arg -> 'arg = <fun>

-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
-------------------
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


  reply	other threads:[~2002-05-14 15:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-14  3:10 Gregory Morrisett
2002-05-14  7:10 ` Francois Pottier
2002-05-14  7:56   ` eijiro_sumii
2002-05-14 12:51     ` Markus Mottl
2002-05-15 19:42       ` John Max Skaller
2002-05-15 21:02         ` Markus Mottl
2002-05-14  8:20   ` Alain Frisch
2002-05-14 10:33     ` Christophe Raffalli [this message]
2002-05-14 13:39   ` Oliver Bandel
2002-05-15  6:00     ` malc
  -- strict thread matches above, loose matches on Subject: below --
2002-05-13 13:31 Markus Mottl
2002-05-13 14:33 ` Lauri Alanko
2002-05-13 21:47 ` Berke Durak
2002-05-14 13:33 ` Oliver Bandel
2002-05-14 14:33 ` Jacques Garrigue
2002-05-14 23:17   ` Markus Mottl
2002-05-14 23:34     ` John Prevost
2002-05-15  8:51       ` Jacques Garrigue
2002-05-15 22:22   ` John Max Skaller

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=1021372380.20927.117.camel@d85.lama.univ-savoie.fr \
    --to=raffalli@univ-savoie.fr \
    --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).