Affiliation:
1. Stevens Institute of Technology, Hoboken, NJ
Abstract
While static typing is widely accepted as being necessary for secure
program execution, dynamic typing is also viewed as being essential in some applications, particularly for distributed programming environments.
Dynamics
have been proposed as a language construct for dynamic typing, based on experience with languages such as CLU, Cedar/Mesa, and Modula-3. However proposals for incorporating dynamic typing into languages with parametric polymorphism have serious shortcomings. A new approach is presented to extending polymorphic lnanguages with dynamic typing. At the heart of the approach is the use of dynamic type dispatch, where polymorphic functions may analyze the structure of their type arguments. This approach solves several open problems with the traditional approach to adding dynamic typing to polymorphic languages. An explicity typed language XML
dyn
is presented; this language uses
refinement kinds
to ensure that dynamic type dispatch does not fail at run-time.
Safe dynamics
are a new form of dynamics that use refinement kinds to statically check the use of run-time dynamic typing. Run-time errors are isolated to a separate construct for performing run-time type checks
Publisher
Association for Computing Machinery (ACM)
Cited by
21 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Heap Slicing Using Type Systems;Computational Science and Its Applications – ICCSA 2012;2012
2. An Insight-Based Longitudinal Study of Visual Analytics;IEEE Transactions on Visualization and Computer Graphics;2006-11
3. Fine-grained interoperability through mirrors and contracts;ACM SIGPLAN Notices;2005-10-12
4. An Insight-Based Methodology for Evaluating Bioinformatics Visualizations;IEEE Transactions on Visualization and Computer Graphics;2005-07
5. CCured: type-safe retrofitting of legacy software;ACM Transactions on Programming Languages and Systems;2005-05