What would it take to add refinement types to Rust?
26 points by leosarev 6 months ago | 3 comments- conradludgate 6 months agoFor what it's worth, with the uom[0] crate you can represent that type equality. It represents units as powers of SI units, so m^1s^-2. It does not have the nice error messages though
- deterministic 6 months agoHaving refinement types in Rust would be a massive game changer. It would make it possible to write proven correct software directly in Rust. Hey even I would switch from C++ to Rust :)
- fn-mote 6 months agoAuthor has made significant contributions to Rust. This is a very serious article.