caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Cedric Cellier <rixed@happyleptic.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Type annotations [Was: Are record types generative?]
Date: Fri, 26 Jan 2018 15:41:37 +0100	[thread overview]
Message-ID: <20180126144137.GA8669@rxdmac.local> (raw)
In-Reply-To: <20180126110325.GA3461@Magus.localnet>

-[ Fri, Jan 26, 2018 at 08:03:25PM +0900, Oleg ]----
> In short, if we know that a function is to take three arguments and
> return an int, why not to write it down.

Because sometime the compiler does a better job at guessing more generic types
than what I had in mind, which might came handy later when/if I do need that
more generic function?
Or merely because I actualy enjoy giving only the vaguest indications to the
compiler and have it walk me toward the actual thing that I wanted to say :)


      reply	other threads:[~2018-01-26 14:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26 11:03 Oleg
2018-01-26 14:41 ` Cedric Cellier [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=20180126144137.GA8669@rxdmac.local \
    --to=rixed@happyleptic.org \
    --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).