From: "Jonathan Roewen" <jonathan.roewen@gmail.com>
To: "Oliver Bandel" <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Arg-module: Float-Args also accept integer values
Date: Wed, 9 Aug 2006 18:13:20 +1200 [thread overview]
Message-ID: <ad8cfe7e0608082313q43b20a75pf05c96f229bb75a6@mail.gmail.com> (raw)
In-Reply-To: <20060809055436.GF4473@first.in-berlin.de>
> I don't care about the implementation-details here,
> and both ways of converting would make sense, IMHO.
> But I want to have clear why this atof-like way was choosen.
> So, it's a design-decision-question (and one that could
> reference to a bug, if the OCaml's type-system way was,
> what initially was intended, but not implemented (for some reason).
Okay then. How about usability? Do you want your end-users to be picky
over adding a decimal point in order to provide a floating point arg?
The decimal point requirement is for the programmers, not the users;
therefore, the float_of_string design is sensible.
w.r.t the sql example, it is possible (cf. linq for C#, or one of
those pgocaml libs which does compile time checking of sql queries).
Jonathan
prev parent reply other threads:[~2006-08-09 6:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 20:57 Oliver Bandel
2006-08-08 21:19 ` [Caml-list] " William D. Neumann
2006-08-08 21:33 ` Oliver Bandel
2006-08-08 21:40 ` Sachin Shah
2006-08-08 22:12 ` Oliver Bandel
2006-08-09 3:25 ` Jonathan Roewen
2006-08-09 3:30 ` Jonathan Roewen
2006-08-09 5:54 ` Oliver Bandel
2006-08-09 6:13 ` Jonathan Roewen [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=ad8cfe7e0608082313q43b20a75pf05c96f229bb75a6@mail.gmail.com \
--to=jonathan.roewen@gmail.com \
--cc=caml-list@inria.fr \
--cc=oliver@first.in-berlin.de \
/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