J4

• 计算机科学 • 上一篇    下一篇

Monad 的 反 射 性

吕江花, 金成植   

  1. 吉林大学计算机科学与技术学院, 长春 130012
  • 收稿日期:2003-09-10 修回日期:1900-01-01 出版日期:2004-04-26 发布日期:2004-04-26
  • 通讯作者: 吕江花

Reflection in Monad

LU Jiang-hua, JIN Cheng-zhi   

  1. College of Computer Science and Technology, Jilin University, Changchun 130012, China
  • Received:2003-09-10 Revised:1900-01-01 Online:2004-04-26 Published:2004-04-26
  • Contact: LU Jiang-hua

摘要: 由结构反射的定义引入计算反射的特点和性质, 讨论并证明了Monad的反射性, 同时利用接续语义中的shift和reset操作函数定义了Monad中的反射操作, 并证明了用这种方法定义反射操作满足反射的条件. 基于上述讨论, 可以很容易地构造出具有反射性的Monad程序.

关键词: 反射, Monad, 元层, 接续

Abstract: In this paper the definition and quality of computational reflection are given over the definition of structure reflection. However, as a new programming technology and language semantics description method, Monad has received more and more attention of researchers. As a result it is important to investigate the union of Monad and reflection. The reflection quality of Monad is given and proved in this paper, on the basis of which the corresponding operations in reflection are also defined and proved by shift and reset operations of CPS. Based on the discussion in the paper, it is easy to construct a reflective Monad-oriented program.

Key words: reflection, Monad, meta-level, continuation

中图分类号: 

  • TP301