A Reflection on Types
A Reflection on Types
复制标题
对类型的反思
DOI:
10.1007/978-3-319-30936-1_16
复制
发表时间:
2016
影响因子:
1.1
通讯作者:
Dimitrios Vytiniotis
中科院分区:
文献类型:
--
作者:
S. Jones;Stephanie Weirich;R. Eisenberg;Dimitrios Vytiniotis
The ability to perform type tests at runtime blurs the line between statically-typed and dynamically-checked languages. Recent developments in Haskell’s type system allow even programs that use reflection to themselves be statically typed, using a type-indexed runtime representation of types called \(\textsf {\textit{TypeRep}}\). As a result we can build dynamic types as an ordinary, statically-typed library, on top of \(\textsf {\textit{TypeRep}}\) in an open-world context.