News for hackers. Stuff that matters.
Re:Can Your Static Type System Handle Linear Algebra? (2014) by dllthomas on Wednesday April 29, 2015 @10:25PM (#9462990)
When people say "you don't want to add meters to feet" it's a short-hand for "you don't want to add [a primitive data type representing] meters to [a primitive data type representing] feet [thereby getting a nonsensical result]." Whether "inches" is the "true type" of my value depends on the context - what invariants am I trying to enforce by giving it that type?

There are no comments on this comment yet.