| ▲ | zem 2 hours ago |
| ATS could probably do some of this by constructing proofs about the bounds and indices - not in the completely general case of course, but for at least some fraction of what a language without dependent types would have to defer to runtime |
|
| ▲ | ratmice an hour ago | parent [-] |
| those are not dynamic bounds. |
| |
| ▲ | LoganDark an hour ago | parent [-] | | All "dynamic" means is that you don't know or don't prove the precise value statically. However you may know the range of possible values, or you may know properties of your algorithm that mean it can never attempt an out-of-bounds access. Sometimes you don't know any of these things, but sometimes you do. |
|