User loginNavigation |
Dependent Types for JavaScriptDependent Types for JavaScript, by Ravi Chugh, David Herman, Ranjit Jhala:
Some good progress on inferring types for a very dynamic language. Explicit type declarations are placed in comments that start with "/*:".
/*: x∶Top → {ν ∣ite Num(x) Num(ν) Bool(ν)} */
function negate(x) {
if (typeof x == "number") { return 0 - x; }
else { return !x; }
}
By naasking at 2013-03-23 15:08 | Object-Functional | Theory | Type Theory | other blogs | 13838 reads
|
Browse archivesActive forum topics |
Recent comments
2 hours 14 min ago
12 hours 52 min ago
14 hours 35 min ago
15 hours 4 min ago
17 hours 10 min ago
17 hours 48 min ago
20 hours 59 min ago
21 hours 43 min ago
23 hours 19 min ago
1 day 3 hours ago