3 ms·
If it quacks like a type and it types like a type... Just kidding! A type system, in essence, is not much different from that, though - Pi, for example, is bas
by LightMachine 9y ago
If it quacks like a type and it types like a type...
Just kidding! A type system, in essence, is not much different from that, though - Pi, for example, is basically a type-level lambda that is applied to the typed function (and it is sufficient to express basically any real-world type system). In any case, I hope I made it very clear on the that it is in no means an actual type system, but my dirty way to get invariants and some refined types on plain JS. If we had a mature Idris->JS compiler this hack wouldn't be necessary. ):