News for hackers. Stuff that matters.
Re:Rust solves the problem of incomplete Kernel Linux API docs by tialaramex on Saturday August 31, 2024 @02:07PM (#41410626)
Yeah, even an extremely powerful units type system like C++ mp-units doesn't fix "I assumed this number was feet and you assumed it was millimetres".

But both the mp-units and this lighter weight Rust approach would at least make you write that down in the software. There's some chance the mistake is realised, whereas when it's just an organisational assumption that just doesn't happen.

There are no comments on this comment yet.