Settings

Theme

What would it take to add refinement types to Rust?

yoric.github.io

26 points by leosarev a year ago · 3 comments

Reader

conradludgate a year ago

For 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

[0] https://docs.rs/uom/latest/uom/

deterministic a year ago

Having 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 a year ago

Author has made significant contributions to Rust. This is a very serious article.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection