News for hackers. Stuff that matters.
Re:Let the Type System do the Work by jimktrains2 on Tuesday April 22, 2014 @02:49PM (#7629564)
miles = constant * km though, you simply scale one to get the other.

f = m*c + b, which is both a scale and a transform.

Re:Let the Type System do the Work by jarrett on Tuesday April 22, 2014 @05:06PM (#7630449)
But as stated above, Dimensional already does Celsius to Kelvin and vice-versa. Which is indeed of the form you just stated:

f = m*c + b

where m is simply equal to 1. Why wouldn't Fahrenheit conversion be the same thing, just with different constants?

Re:Let the Type System do the Work by jimktrains2 on Thursday April 24, 2014 @08:39PM (#7644044)
Me no reed gud :-\

Yeah, you're correct.