|
|
|
|
|
by coder543
2081 days ago
|
|
I don't understand what you're asking for here. I did an experiment with units of measure years ago in Rust: https://github.com/coder543/metric To me, it felt ergonomic, and it was absolutely compile-time type safe to the extent you would expect. It worked just fine. I know of quite a few other libraries that do the same thing with their own unique approaches, so there are many flavors of this that all work on stable Rust. If you're asking for something like this to be built into the standard library... that's very unlikely to happen in the foreseeable future. |
|