caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alain Frisch <alain.frisch@lexifi.com>
To: Jacques Garrigue <garrigue@math.nagoya-u.ac.jp>
Cc: Mailing List OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] How to rename a record field
Date: Fri, 7 Sep 2018 14:49:55 +0200	[thread overview]
Message-ID: <7fed9f2d-953b-8153-0acf-97a7c984f440@lexifi.com> (raw)
In-Reply-To: <F86E0B35-B2DE-4FFF-96A9-840DADCBA5E2@math.nagoya-u.ac.jp>

On 07/09/2018 12:13, Jacques Garrigue wrote:
> On 2018/09/07 17:36, Alain Frisch wrote:
>> Or indeed allow adding attributes on (labeled?) arguments, or interpret attributes on their types.  But internally, the information could always be attached to the value binding, which should be simpler than storing it in the type.
> 
> This is not so clear.
> The binding information could be hard to bring to the application type inference, while if it is contained in the label, it is already available where it is needed.

Do you have in mind really tracking the annotation during type 
inference?  For instance, to support binding a partial application of a 
function, and still track the deprecation of arguments of the resulting 
function?

I was thinking about a much more limited approach: the deprecation of 
arguments is checked when the functional value is referenced and 
immediately applied.

Quick POC to track the discussion on this topic: 
https://github.com/ocaml/ocaml/pull/2027


Alain

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

      reply	other threads:[~2018-09-07 12:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-06 11:36 Enrico Tassi
2018-09-06 11:48 ` Gabriel Scherer
2018-09-06 13:03   ` Enrico Tassi
2018-09-06 13:17     ` Jacques Garrigue
2018-09-06 14:18       ` Enrico Tassi
2018-09-06 23:34         ` Jacques Garrigue
2018-09-06 16:20 ` Alain Frisch
2018-09-06 16:21   ` Alain Frisch
2018-09-06 23:45     ` Jacques Garrigue
2018-09-07  8:36       ` Alain Frisch
2018-09-07 10:13         ` Jacques Garrigue
2018-09-07 12:49           ` Alain Frisch [this message]

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=7fed9f2d-953b-8153-0acf-97a7c984f440@lexifi.com \
    --to=alain.frisch@lexifi.com \
    --cc=caml-list@inria.fr \
    --cc=garrigue@math.nagoya-u.ac.jp \
    /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).