James Earl Douglas
May 26, 2020
In the next ten minutes, I aim to:
The fundamental problem addressed by a type theory is to ensure that programs have meaning.
-- Mark Manasse
There's only one possible implementation*: identity
.
What is z
?
╯°□°)╯︵ ┻━┻
function multiply(x: number, y: number): number {
// implementation hidden
}
var z: number = multiply(6, 7);
Now what is z
?
┬─┬ノ( º _ ºノ)
Testable laws: identity, associativity
\o/
Web browsers don't know what TypeScript is. They need JavaScript.
multiply.ts: