|
|
|
|
|
by valyagolev
974 days ago
|
|
Sure, in the same sense that every "untyped" program is already typed with some kind of a universal type, but what's the point? What I want is to be able to specify and have (when possible) automatically proven arbitrary assertions anywhere in the code without necessarily making sure that every possible presupposition is proven from the ground up. Just like in Typescript, I can add a type at any point where there was only "any", and have a small portion of the program typed without typing the whole thing |
|
You can also use stuff like ! when you don't want to prove your array indices (it might crash or substitute a dummy value if you're wrong).