3 ms·
> Formalism aside, it seems like it's most useful in practice to think of type as defining what can be done with a value. That might be a simpler way of explai
by naasking 10y ago
> Formalism aside, it seems like it's most useful in practice to think of type as defining what can be done with a value.
That might be a simpler way of explaining it, since "proposition" is rather abstract. Or perhaps, a type defines the valid state transitions your program can undergo at any given point, ie. given the data in your program (the program state S0), the types of all of that data define a set of valid transitions to another data set (program state S1).