...
首页> 外文期刊>Higher-order and symbolic computation >A functional approach to generic programming using adaptive traversals
【24h】

A functional approach to generic programming using adaptive traversals

机译:使用自适应遍历的泛型编程的一种功能方法

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

摘要

Writing functions over complex user-defined datatypes can be tedious and error prone. Generic (or polytypic) programming and higher order functions like f oldr have resolved some of these issues, but can be too general to be practically useful for larger collections of data types. In this paper we present a traversal-based approach to generic programming using function sets. Our traversal is an adaptive, higher-order function that employs an asymmetric type-based multiple dispatch to fold over arbitrarily complex structures. We introduce our approach in the context of our Scheme library implementation, present a typed model of our system, and provide a proof of type soundness, showing that our flexible, adaptive approach is both useful and safe.
机译:在复杂的用户定义数据类型上编写函数可能很繁琐且容易出错。通用(或多型)编程和更高阶的函数(如foldr)已经解决了其中的一些问题,但由于过于笼统而无法在较大的数据类型集合中实用。在本文中,我们提出了一种基于遍历的使用函数集进行通用编程的方法。我们的遍历是一种自适应的高阶函数,它使用基于非对称类型的多重调度来折叠任意复杂的结构。我们在我们的Scheme库实现的背景下介绍我们的方法,介绍我们系统的类型化模型,并提供类型健全性的证明,表明我们灵活,自适应的方法既有用又安全。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号