From: brogoff@speakeasy.net
To: Christoph Bauer <c_bauer@informatik.uni-kl.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Type inference + optional parameters
Date: Tue, 2 Sep 2003 12:01:26 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0309021151260.23120-100000@grace.speakeasy.net> (raw)
In-Reply-To: <m3fzjf825m.fsf@diebuntekuh.de>
On Tue, 2 Sep 2003, Christoph Bauer wrote:
> Sorry, but what are the benefits of these functions over the original
> function without the optional parameter?
None. I was being facetious, sorry.
> I need a conversion function conv:'a -> 'b and the default value should be
> the identity.
There is no suitable default suitable conversion function of that type (think
about it for a minute and you'll understand), so there is no good way to make
an optional argument of type ('a -> 'b).
-- Brian
-------------------
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
next parent reply other threads:[~2003-09-02 19:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m3fzjf825m.fsf@diebuntekuh.de>
2003-09-02 19:01 ` brogoff [this message]
2003-09-02 16:20 Christoph Bauer
2003-09-02 17:06 ` brogoff
2003-09-03 2:08 ` Jacques Garrigue
2003-09-03 8:08 ` Alain.Frisch
2003-09-06 0:53 ` Jacques Garrigue
2003-09-03 9:56 ` Michal Moskal
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=Pine.LNX.4.44.0309021151260.23120-100000@grace.speakeasy.net \
--to=brogoff@speakeasy.net \
--cc=c_bauer@informatik.uni-kl.de \
--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