3 ms·
A refinement type, is a value type with preconditions attached. Simply put, instead of something being an Integer, you can say it is an Integer, but only betwe
by shakna 9y ago
A refinement type, is a value type with preconditions attached.
Simply put, instead of something being an Integer, you can say it is an Integer, but only between 1 and 6. In this case, this should be enforced at compile-time.