Name: Anonymous 2018-10-12 17:08
So, why are you not using dependent types yet? Do you like your programs randomly crashing?
List 50 Int
for the type of a list with 50 elements. A functions like head that take the 1st element of a list could have a type like {t : Type} -> {length : t} -> (value : t) -> List (1 + length) t -> t
head (cons 9 nil) = 9
head nil = compile time type error as the type of nil is something like List 0 Int
int sussman[10]; sussman[90] = 100;