首页> 外文会议>6th ACM SIGPLAN workshop on generic programming 2010 >Ad-hoc Polymorphism and Dynamic Typing in a Statically Typed Functional Language
【24h】

Ad-hoc Polymorphism and Dynamic Typing in a Statically Typed Functional Language

机译:临时类型多态性和静态类型功能语言中的动态类型

获取原文
获取原文并翻译 | 示例

摘要

Static typing in functional programming languages such as Clean, Haskell, and ML is highly beneficial: it prevents erroneous behaviour at run time and provides opportunities for optimisations. However, dynamic typing is just as important as sometimes types are not known until run time. Examples are exchanging values between applications by deserialisation from disk, input provided by a user, or obtaining values via a network connection. Ideally, a static typing system works in close harmony with an orthogonal dynamic typing system; not discriminating between statically and dynamically typed values. In contrast to Haskell's minimal support for dynamic typing, Clean has an extensive dynamic typing; it adopted ML's support for monomorphism and parametric polymorphism and added the notion of type dependencies. Unfortunately, ad-hoc polymorphism has been left out of the equation over the years. While both ad-hoc polymorphism and dynamic typing have been studied in-depth earlier, their interaction in a statically typed functional language has not been studied before. In this paper we explore the design space of their interactions.
机译:功能编程语言(例如Clean,Haskell和ML)中的静态类型非常有用:它可以防止运行时的错误行为,并提供优化的机会。但是,动态类型同样重要,因为有时有时要等到运行时才知道类型。例如,通过从磁盘反序列化在应用程序之间交换值,用户提供的输入或通过网络连接获取值。理想情况下,静态打字系统与正交动态打字系统紧密协调。不能区分静态类型值和动态类型值。与Haskell对动态类型的最小支持相反,Clean具有广泛的动态类型。它采用了ML对单态和参数多态的支持,并增加了类型依赖的概念。不幸的是,多年来,临时多态性一直被排除在外。尽管临时多态性和动态类型都已得到较早的深入研究,但它们在静态类型的功能语言中的交互作用尚未进行过研究。在本文中,我们探索了它们交互的设计空间。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号