【24h】

What is a recursive module?

机译:什么是递归模块?

获取原文

摘要

A hierarchical module system is an effective tool for structuring large programs. Strictly hierarchical module systems impose an acyclic ordering on import dependencies among program units. This can impede modular programming by forcing mutually-dependent components to be consolidated into a single module. Recently there have been several proposals for module systems that admit cyclic dependencies, but it is not clear how these proposals relate to one another, nor how one might integrate them into an expressive module system such as that of ML.To address this question we provide a type-theoretic analysis of the notion of a recursive module in the context of a "phase-distinction" formalism for higher-order module systems. We extend this calculus with a recursive module mechanism and a new form of signature, called a recursively dependent signature, to support the definition of recursive modules. These extensions are justified by an interpretation in terms of more primitive language constructs. This interpretation may also serve as a guide for implementation.
机译:分层模块系统是构造大型程序的有效工具。严格的分层模块系统对程序单元之间的导入依赖项强加了非循环排序。通过强制将相互依赖的组件合并到单个模块中,可以阻止模块化编程。最近有一些关于允许循环依赖的模块系统的建议,但是目前尚不清楚这些建议如何相互关联,也不清楚如何将它们集成到一个富有表现力的模块系统(例如ML)中。为解决这一问题,我们提供了在高阶模块系统的“相区别”形式主义背景下对递归模块概念进行类型理论分析。我们使用递归模块机制和一种称为 recursivelydependent signature 的新形式的签名来扩展该演算,以支持递归模块的定义。这些扩展通过对更多原始语言构造的解释来证明是正确的。这种解释也可以作为实施的指南。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号