From: Sam Steingold <sds@gnu.org>
To: Nicolas barnier <barnier@recherche.enac.fr>
Cc: Caml list <caml-list@inria.fr>
Subject: Re: Arg.spec and option types
Date: Thu, 22 Mar 2007 16:32:50 -0400 [thread overview]
Message-ID: <4602E7F2.3060804@gnu.org> (raw)
In-Reply-To: <4602990B.6030406@recherche.enac.fr>
Nicolas barnier wrote:
>
> I think it would therefore be quite useful to add
> Set_option_{string|int|float}
> constructors which would expect {string|int|float} option ref values as
> arguments (usually initialized with None). Do others think the same or use
> some other workaround to obtain this behaviour ?
It is nice to know that I am not the only one who is writing
Arg.String (fun s -> foo := Some s)
all the time.
Sam.
next prev parent reply other threads:[~2007-03-22 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 14:56 Nicolas barnier
2007-03-22 20:32 ` Sam Steingold [this message]
2007-03-22 20:46 ` [Caml-list] " Nicolas Pouillard
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=4602E7F2.3060804@gnu.org \
--to=sds@gnu.org \
--cc=barnier@recherche.enac.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).