3 ms·
You can ensure basic type safety by requiring an input T for the vertex, but you cannot ensure expression safety since T satisfies the type safety requirement,
by icebraining 9y ago
You can ensure basic type safety by requiring an input T for the vertex, but you cannot ensure expression safety since T satisfies the type safety requirement, but not the requirements of the expression represented by the vertex.
You should look into Idris; what you describe is just another type.
http://docs.idris-lang.org/en/latest/tutorial/introduction.html http://docs.idris-lang.org/en/latest/tutorial/introduction.h...