Static Typing & Java']JavaScript Libraries: Towards a More Considerate Relationship
被引:0
作者:
Canou, Benjamin
论文数: 0引用数: 0
h-index: 0
机构:
Sorbonne Univ, LIP6, Univ Pierre & Marie Curie, UMR 7606, 4 Pl Jussieu, F-75005 Paris, FranceSorbonne Univ, LIP6, Univ Pierre & Marie Curie, UMR 7606, 4 Pl Jussieu, F-75005 Paris, France
Canou, Benjamin
[1
]
Chailloux, Emmanuel
论文数: 0引用数: 0
h-index: 0
机构:
Sorbonne Univ, LIP6, Univ Pierre & Marie Curie, UMR 7606, 4 Pl Jussieu, F-75005 Paris, FranceSorbonne Univ, LIP6, Univ Pierre & Marie Curie, UMR 7606, 4 Pl Jussieu, F-75005 Paris, France
Chailloux, Emmanuel
[1
]
Botbol, Vincent
论文数: 0引用数: 0
h-index: 0
机构:
Sorbonne Univ, Univ Pierre & Marie Curie, F-75005 Paris, FranceSorbonne Univ, LIP6, Univ Pierre & Marie Curie, UMR 7606, 4 Pl Jussieu, F-75005 Paris, France
Botbol, Vincent
[2
]
机构:
[1] Sorbonne Univ, LIP6, Univ Pierre & Marie Curie, UMR 7606, 4 Pl Jussieu, F-75005 Paris, France
[2] Sorbonne Univ, Univ Pierre & Marie Curie, F-75005 Paris, France
来源:
PROCEEDINGS OF THE 22ND INTERNATIONAL CONFERENCE ON WORLD WIDE WEB (WWW'13 COMPANION)
|
2013年
In this paper, after relating a short history of the mostly unhappy relationship between static typing and JavaScript (JS), we explain a new attempt at conciliating them which is more respectful of both worlds than other approaches. As an example, we present Onyo [1], an advanced binding of the Enyo JS library for the OCaml language. Onyo exploits the expressiveness of OCaml's type system to properly encode the structure of the library, preserving its design while statically checking that it is used correctly, and without introducing runtime overhead.