Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Devil in Plain Text. Parent comment
Some examples from the documentation:
quantity<length> L = 2.0*meters; quantity<energy> E = kilograms*pow<2>(L/seconds); quantity<plane_angle> theta = 0.375*radians; quantity<dimensionless> sin_theta = sin(theta); quantity<plane_angle> thetap = asin(sin_theta);
There are no comments on this comment yet.
Some examples from the documentation:
I figured Haskell's type system could also do this sort of thing, and it can. I found Dimensional: https://code.google.com/p/dimensional/, but I'm not sure if it's in standard use in the Haskell community. Examples: https://code.google.com/p/dimensional/wiki/IspExample