From: Nicolas barnier <barnier@recherche.enac.fr>
To: Caml list <caml-list@inria.fr>
Subject: Arg.spec and option types
Date: Thu, 22 Mar 2007 15:56:11 +0100 [thread overview]
Message-ID: <4602990B.6030406@recherche.enac.fr> (raw)
Hi list,
I find the recent addition of the Set_{string|int|float} constructors
of type Arg.spec quite useful, as it spares a lot of repeated code
for processing command line arguments. However, for optional arguments,
I often feel the need (and write the code) to handle option types,
which can elegantly be processed to trigger optional behaviours of a
program.
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 ?
-- Nicolas
next reply other threads:[~2007-03-22 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 14:56 Nicolas barnier [this message]
2007-03-22 20:32 ` Sam Steingold
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=4602990B.6030406@recherche.enac.fr \
--to=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