[m-rev.] for review: Add float argument support to getopt module.

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Sep 30 11:24:38 AEST 2008

On Tue, 30 Sep 2008, Paul Bone wrote:

> For review by anyone.
> Estimated hours taken: 1
> Branches: main
> Add two new argument types to the getopt module: float and maybe_float.  These
> accept floating point arguments using string.to_float/2
> library/getopt.m:
> 	Add support for float and maybe_float arguments.
> 	Announce change.

I don't think that this change is worth adding due to the fact that the
float conversion may not be what the user actually wants.  I think float
arguments to command line options would better be handled as strings and
the user can choose what to do when they are processed.

mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au

More information about the reviews mailing list