Hacker News new | past | comments | ask | show | jobs | submit login

How can checks be done if the size is dynamic based on run-time data?



"Integer between 0 and n-1 inclusive" is the type of valid indices for an n element array. The trouble is most languages don't have type systems that allow expressing that.


The Pascal family are such languages.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: