首页> 外文期刊>Science of Computer Programming >Type-directed weaving of aspects for polymorphically typed functional languages
【24h】

Type-directed weaving of aspects for polymorphically typed functional languages

机译:多态类型功能语言的方面的类型定向编织

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

摘要

Incorporating aspect-oriented paradigm to a polymorphically typed functional language enables the declaration of type-scoped advice, in which the effect of an aspect can be harnessed by introducing possibly polymorphic type constraints to the aspect. The amalgamation of aspect orientation and functional programming enables quick behavioral adaption of functions, clear separation of concerns and expressive type-directed programming. However, proper static weaving of aspects in polymorphic languages with a type-erasure semantics remains a challenge. In this paper, we describe a type-directed static weaving strategy, as well as its implementation, that supports static type inference and static weaving of programs written in an aspect-oriented polymorphically typed functional language, AspectFun. We show examples of type-scoped advice, identify the challenges faced with compile-time weaving in the presence of type-scoped advice, and demonstrate how various advanced aspect features can be handled by our techniques. Finally, we prove the correctness of the static weaving strategy with respect to the operational semantics of AspectFun.
机译:将面向方面的范例与多态类型的功能语言相结合,可以声明类型范围的建议,其中可以通过向方面引入可能的多态类型约束来利用方面的效果。方面方向和功能编程的结合使得功能的行为适应性更强,关注点之间的清晰分离和表达型程序设计成为可能。然而,具有类型擦除语义的多态语言中方面的正确静态编织仍然是一个挑战。在本文中,我们描述了一种类型导向的静态编织策略及其实现,该策略支持以面向方面的多态类型功能语言AspectFun编写的程序的静态类型推断和静态编织。我们展示了类型范围建议的示例,确定了存在类型范围建议的情况下编译时编织所面临的挑战,并演示了我们的技术如何处理各种高级方面的功能。最后,相对于AspectFun的操作语义,我们证明了静态编织策略的正确性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号