|
|
|
|
|
by nine_k
256 days ago
|
|
Ideally, a compiler can statically prove that values stay within the range; it's no different than proving that values of an enumeration type are valid. The only places where a check is needed are conversions from other types, which are explicit and traceable. |
|