caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
To: Diego Olivier Fernandez Pons <Diego.FERNANDEZ_PONS@etu.upmc.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Peut on unifier foncteurs et objets ?
Date: Thu, 05 Aug 2004 19:48:20 -0400	[thread overview]
Message-ID: <4112C744.2000304@univ-savoie.fr> (raw)
In-Reply-To: <Pine.A41.4.44.0408061101010.618570-100000@ibm1>


Pour faire (vraiment trop) simple, OUI:

Si on oublie un peu le typage (pas pour longtemps)

- Un module c'est un record + des existentiels pour les types abstraits.
- Il faut aussi un epsilon de Hilbert pour interpréter le M.t quand t 
est un type et pour pouvoir ainsi écrire des contraintes de types.
- Un foncteurs n'est alors qu'une fonction + des contraintes de types.
- Un object n'est qu'un record récursifs (à cause du self) (il faut 
aussi un peu de sucre syntaxique pour la surcharge et l'héritage et 
quelques décisions quant à leur sémantique).

Le pb c'est le typage, mais si l'on abandonne la décidabilité, il suffit 
d'une extension de système F: système ST (voir mes deux papiers sur ma 
page et la thèse a venir (6 mois ?) de Frédérique Ruyer qui sera 
précisément sur ce sujet).

En plus dans le système que l'on propose et que l'on va implanter, on 
pourra aussi spécifier les programmes (de toutes façons, pour écrire 
toutes les contraintes de types dont on a besoin, il faut  presque tout 
système ST, et si on prends tout, on peut spécifier et prouver).


-- 
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
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature
---------------------------------------------

-------------------
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:[~2004-08-06 15:33 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 [this message]
2004-08-06 15:29 ` John Prevost
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=4112C744.2000304@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=Diego.FERNANDEZ_PONS@etu.upmc.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).