首页> 外文期刊>Discrete Mathematics And Theoretical Computer Science >Discrete Mathematics & Theoretical Computer Science,Vol 3, No 4 (1999)
【24h】

Discrete Mathematics & Theoretical Computer Science,Vol 3, No 4 (1999)

机译:离散数学与理论计算机科学,第3卷,第4期(1999)

获取原文
           

摘要

The theory and practice of polytypic programming is intimately connected with the initial algebra semantics of datatypes. This is both a blessing and a curse. It is a blessing because the underlying theory is beautiful and well developed. It is a curse because the initial algebra semantics is restricted to so-called regular datatypes. Recent work by R.Bird and L.Meertens [3] on the semantics of non-regular or nested datatypes suggests that an extension to general datatypes is not entirely straightforward. Here we propose an alternative that extends polytypism to arbitrary datatypes, including nested datatypes and mutually recursive datatypes. The central idea is to use rational trees over a suitable set of functor symbols as type arguments for polytypic functions. Besides covering a wider range of types the approach is also simpler and technically less involving than previous ones. We present several examples of polytypic functions, among others polytypic reduction and polytypic equality. The presentation assumes some background in functional and in polytypic programming. A basic knowledge of monads is required for some of the examples.
机译:多型编程的理论和实践与数据类型的初始代数语义密切相关。这既是福也是祸。这是一件好事,因为基础理论是美丽而发达的。这是一个诅咒,因为最初的代数语义仅限于所谓的常规数据类型。 R.Bird和L.Meertens [3]最近对非常规或嵌套数据类型的语义所做的工作表明,对通用数据类型的扩展并非完全简单。在这里,我们提出了一种将多型性扩展到任意数据类型的替代方法,包括嵌套数据类型和相互递归的数据类型。中心思想是在一组合适的函子符号上使用有理树作为多型函数的类型参数。除了涵盖更广泛的类型之外,该方法还比以前的方法更简单,技术上更少。我们提供了多型功能的几个示例,其中包括多型减少和多型相等。该演示文稿在功能和多型编程中具有一定的背景知识。对于某些示例,需要具备monad的基本知识。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号