Integrating Coercion With Subtyping And Multiple Dispatch

SCIENCE OF COMPUTER PROGRAMMING(2008)

引用 2|浏览0
暂无评分
摘要
Coercion can greatly improve the readability of programs, especially in arithmetic expressions. However, coercion interacts with other features of programming languages, particularly subtyping and overloaded functions and operators, in ways that can produce surprising behavior. We study examples of such surprising behavior in existing languages. This study informs the design of the coercion mechanism of Fortress, an object-oriented language with multiple dynamic dispatch, multiple inheritance and user-defined coercion. We describe this design and show how its restrictions on overloaded declarations prevent ambiguous calls due to coercion.
更多
查看译文
关键词
Coercion,Subtyping,Overloading,Multiple dispatch
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要