Name: Anonymous 2018-10-12 17:08
So, why are you not using dependent types yet? Do you like your programs randomly crashing?
The idea is basically that types may depend on values, so you can have something like List 50 Int for the type of a list with 50 elements.Then C got dependent types:
That way you basically can't do things like int sussman[10]; sussman[90] = 100;
typedef int dependent_type[50];
dependent_type A;
#include <stdio.h>
int main(){A[90]=100;printf("%d",A[90]);;}