3 ms·
>I say bare numbers can be poison in a sufficiently complicated system Indeed. It's interesting that the de facto solution to this is to key value pairs, where
by javajosh 4y ago
>I say bare numbers can be poison in a sufficiently complicated system
Indeed. It's interesting that the de facto solution to this is to key value pairs, where sometimes the key can be an array (e.g. json, xml, etc), and then one can (kinda) infer units from the key. But even this is insufficient, because inevitably the value is pulled out and it's context is lost.
This is, I think, a(nother) powerful argument for immutable values, and accreting structure losslessly with pointers. Like in Clojure. In general we our runtime should support values that have monotonically increasing amounts of metadata added to them during runtime, for example units, or more paths, such that any user of the value can interrogate that structure and find out what it meant to the last people to read or write the value.