4 ms·
You can (and in my opinion, should) take this further with range types, such as those implemented in Ada.
by giornogiovanna 8y ago
You can (and in my opinion, should) take this further with range types, such as those implemented in Ada.
- smaddox 8y agoYeah, Rust doesn't have built-in range types, but it's fairly straightforward to write a macro to generate them. I've done this for array indices being passed over the network, in order to automate validation and minimize their bit-size on the wire.