3 ms·
"unsigned" doesn't express intent. It expresses implementation, maybe it expresses assumption. Ada's "Positive" or "Natural" or subtype X is Integer range Y
by Avshalom 5y ago
"unsigned" doesn't express intent. It expresses implementation, maybe it expresses assumption.
Ada's "Positive" or "Natural" or
subtype X is Integer range Y..Z;
expresses intent (well expresses requirement really), it also enforces that constraint, so it's not merely an assumption.