From: Jon Harrop <jonathandeanharrop@googlemail.com>
To: caml-list <caml-list@yquem.inria.fr>
Subject: Measures
Date: Mon, 22 Sep 2008 00:30:31 +0100 [thread overview]
Message-ID: <200809220030.31468.jon@ffconsultancy.com> (raw)
This latest post about statically typing constraints beyond mere
floating-point values reminds me that the F# programming language just got
another new feature called "measures" that lets you add phantom types
representing units of measure and even handles arithmetic over them for you.
I have not used measures yet myself but I was just wondering if the OCaml
world had already seen anything like this?
I had been under the impression that this could not be made to work but,
obviously, I was wrong!
--
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e
next reply other threads:[~2008-09-21 22:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-21 23:30 Jon Harrop [this message]
2008-09-21 23:15 ` [Caml-list] Measures Hezekiah M. Carty
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=200809220030.31468.jon@ffconsultancy.com \
--to=jonathandeanharrop@googlemail.com \
--cc=caml-list@yquem.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