On Wednesday, 26 February 2014 at 22:49:57 UTC, Nordlöw wrote:
On Wednesday, 26 February 2014 at 21:41:57 UTC, Kelet wrote:
Tangentially related: https://github.com/biozic/quantities

Impressive!

This seems similar to David Nadlingers std.units and std.si.

When will all these efforts on implementing Units/SI be synchronized and reviewed?

One question:

I know what angles are but I have never seen them defined like this before!

enum radian = meter / meter; // ditto
enum steradian = square(meter) / square(meter); /// ditto

What on earth does this mean?

/Per

Thanks! I think David Nadlingers' is more elaborate (scaled and
affine units) and less prone to rounding errors. I haven't used
it yet. Mine is more basic but has a parsing system that I use to
define units quickly at compile-time and parse data files at
runtime.

--
Nicolas

Reply via email to