Please use this identifier to cite or link to this item: https://doi.org/10.1016/j.scico.2010.04.001
Title: Type-directed weaving of aspects for polymorphically typed functional languages
Authors: Chen, K.
Weng, S.-C.
Wang, M.
Khoo, S.-C. 
Chen, C.-H.
Keywords: Aspect-oriented programming
Polymorphically typed functional language
Static weaving
Type-scoped advice
Issue Date: 2010
Citation: Chen, K., Weng, S.-C., Wang, M., Khoo, S.-C., Chen, C.-H. (2010). Type-directed weaving of aspects for polymorphically typed functional languages. Science of Computer Programming 75 (11) : 1048-1076. ScholarBank@NUS Repository. https://doi.org/10.1016/j.scico.2010.04.001
Abstract: 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. © 2010 Elsevier B.V.
Source Title: Science of Computer Programming
URI: http://scholarbank.nus.edu.sg/handle/10635/40840
ISSN: 01676423
DOI: 10.1016/j.scico.2010.04.001
Appears in Collections:Staff Publications

Show full item record
Files in This Item:
There are no files associated with this item.

Google ScholarTM

Check

Altmetric


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.