【24h】

Transparent Function Types: Clearing up Opacity

机译:透明功能类型:清除不透明度

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

摘要

Functional logic programming (FLP) is a paradigm that comes from the integration of lazy functional programming and logic programming. Although most FLP systems use static typing by means of a direct adaptation of Damas-Milner type system, it is well-known that some FLP features like higher-order patterns or the equality operator lead to so-called opacity situations that are not properly handled by Damas-Milner type system, thus leading to the loss of type preservation. Previous works have addressed this problem either directly forbidding those HO patterns that are opaque or restricting its use. In this paper we propose a new approach that is based on eliminating the unintended opacity created by HO patterns and the equality operator by extending the expressiveness of the type language with decorations in the arrows of the functional types. We study diverse possibilities, which differ in the amount of information included in the decorations. The obtained type systems have different properties and expressiveness, but each of them recovers type preservation from simple extensions of Damas-Milner.
机译:功能逻辑编程(FLP)是一种范式,它来自惰性功能编程和逻辑编程的集成。尽管大多数FLP系统都是通过直接适应Damas-Milner类型系统来使用静态类型的,但众所周知,某些FLP功能(例如高阶模式或相等运算符)会导致无法正确处理的所谓不透明情况由Damas-Milner类型系统创建,从而导致类型保存丢失。以前的工作已经解决了这个问题,要么直接禁止了不透明的HO模式,要么限制了它的使用。在本文中,我们提出了一种新方法,该方法基于通过使用功能类型箭头中的修饰来扩展类型语言的表现力,从而消除由HO模式和相等运算符创建的意外不透明性。我们研究各种可能性,这些可能性包括在装饰中所包含的信息量上。所获得的类型系统具有不同的属性和表现力,但是每个类型系统都可以从Damas-Milner的简单扩展中恢复类型保存。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号