From: Guillaume Yziquel <guillaume.yziquel@citycable.ch>
To: Raoul Duke <raould@gmail.com>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] return type annotation syntax?
Date: Thu, 27 Jan 2011 01:41:08 +0100 [thread overview]
Message-ID: <20110127004107.GO4195@localhost> (raw)
In-Reply-To: <AANLkTi=qfdnHSoxzi=cP2AShiDr=hR=ryRfm5MEjj2k3@mail.gmail.com>
Le Wednesday 26 Jan 2011 à 16:12:40 (-0800), Raoul Duke a écrit :
> On Wed, Jan 26, 2011 at 4:01 PM, Guillaume Yziquel
>
> > let f (x : input_typ) : return_type = ...
>
> oh, thanks! i was trying to use "->" in there somewhere just doing
> lame human pattern matching on what the repl prints as types for
> things, and i even saw "->" in the ocaml grammar spec for types so i
> was figuring the "->" was to be used. :-P
Well, you can always write
let f : input_type -> output_type = function x -> ...
--
Guillaume Yziquel
prev parent reply other threads:[~2011-01-27 0:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 23:54 Raoul Duke
2011-01-27 0:01 ` Guillaume Yziquel
2011-01-27 0:12 ` Raoul Duke
2011-01-27 0:41 ` Guillaume Yziquel [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=20110127004107.GO4195@localhost \
--to=guillaume.yziquel@citycable.ch \
--cc=caml-list@inria.fr \
--cc=raould@gmail.com \
/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