MorphScala: safe class morphing with macros.

SPLASH(2014)

引用 1|浏览42
暂无评分
摘要
ABSTRACTThe goal of this paper is to design an easy type-safe metaprogramming API for Scala to capture generative metaprogramming tasks that depend on existing definitions to generate others, by writing meta-code as close as possible to regular Scala code. MorphScala, is a simple domain specific language based on the for-comprehension syntax, that introduces the class morphing metaprogramming technique to the Scala programming language. Class morphing is a flavor of compile time reflection (CTR) over fields or methods of classes and interfaces. The enabling technologies for MorphScala are Scala macros and quasiquotes that provide a powerful API for compile-time transformations.
更多
查看译文
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要