Name: Anonymous 2018-10-12 17:08
So, why are you not using dependent types yet? Do you like your programs randomly crashing?
Vect n Int
while the head function requires a value of type Vect (n + 1) Int
C++ version with setters/getters on protected boxed value would work fine at runtimeThe issue is that the compiler will not warn you if you forget or mis-implement said getters/setters. See >>24