This post originated from an RSS feed registered with Ruby Buzz
by Caleb Tennis.
Original Post: The Power of The Lambda
Feed Title: Tarkblog
Feed URL: http://blog.casey-sweat.us/library/shared/happyUrl/fnf_msdn.asp?Redirect="http://blog.casey-sweat.us/404/default.asp"
Feed Description: Caleb's personal weblog about his experiences in life, langauges, and laughter.
In one of the (non-Ruby) applications I maintain, there is a function that is responsible for handling unit conversions. It looks something like this:
double UnitConvert(double value, string from_unit, string to_unit)
So that I can do this:
double value = UnitConvert(5.0, "feet", "inches")
The underlying part of this code has to figure out exactly how to convert between [...]