Preliminary submission - std.rational and std.typelist

bearophile bearophileHUGS at lycos.com
Sat Oct 6 10:54:20 PDT 2012


Arlen:

Regarding units in D, here I have shown a (hopefully) nice usage 
syntax:

http://forum.dlang.org/thread/uchcycnsvykuojzhuokh@forum.dlang.org#post-qnbpufluqlaxfyxzwxnq:40forum.dlang.org


> std.rational, which is a small module for rational numbers.
> Source: 
>  https://github.com/Arlen/phobos/blob/units/std/rational.d
> Docs:  http://arlen.github.com/phobos/std_rational.html

I'd like a Rational in Phobos. Have you tested it (in unittests) 
widely with Bigints?


> std.typelist, which provides the TypeList type and several 
> metafunctions.  The metafunctions are pretty much stolen from 
> Haskell.  
> Source: 
>  https://github.com/Arlen/phobos/blob/units/std/typelist2.d
> Docs:  http://arlen.github.com/phobos/std_typelist2.html

Aren't TypeTuples enough?

Bye,
bearophile


More information about the Digitalmars-d mailing list