Re:Rust solves the problem of incomplete Kernel Linux API docs
by pessimizer on Saturday August 31, 2024 @02:05PM
(#41410614)
Unless the unit was part of the type, and why wouldn't it be? A unit error is a type error. You don't have to say that something is 5 long, you can say that it's 5 inches long. And the function can be made only to accept a length in inches, and you can implement :Into<Inches> on your length type for an automagic conversion.
[ Parent
| on HN ]
Re:Rust solves the problem of incomplete Kernel Linux API docs
by nurettin on Saturday August 31, 2024 @03:30PM
(#41411270)
That wouldn't be enough unless the csv somehow kept serialized column type in the header and the deserializer knew how to interpret it.
Re:Rust solves the problem of incomplete Kernel Linux API docs
by db48x on Saturday August 31, 2024 @04:22PM
(#41411676)
Of course, but that doesn’t solve the problem. The problem here is that two separate organizations with completely different software were communicating via CSV file. There was a contractual obligation between them that required them to use specific units, but no technical collaboration. The problem was not in their software, but in the management and engineering discipline of the two groups.