首页 | 本学科首页   官方微博 | 高级检索  
     


Side-effect localization for lazy, purely functional languages via aspects
Authors:Kung Chen  Shu-Chun Weng  Jia-Yin Lin  Meng Wang  Siau-Cheng Khoo
Affiliation:1. National Chengchi University, Taipei City, Taiwan
2. Yale University, New Haven, CT, USA
3. Oxford University, Oxford, UK
4. National University of Singapore, Singapore, Singapore
Abstract:
Many side-effecting programming activities, such as profiling and tracing, can be formulated as crosscutting concerns and be framed as side-effecting aspects in the aspect-oriented programming paradigm. The benefit gained from this separation of concerns is particularly evident in purely functional programming, as adding such aspects using techniques such as monadification will generally lead to crosscutting changes. This paper presents an approach to provide side-effecting aspects for lazy purely functional languages in a user transparent fashion. We propose a simple yet direct state manipulation construct for developing side-effecting aspects and devise a systematic monadification scheme to translate the woven code to monadic style purely functional code. Furthermore, we present a static and dynamic semantics of the aspect programs and reason about the correctness of our monadification scheme with respect to them.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号