计算机科学 > 程序设计语言
[提交于 2014年4月13日]
标题:Annotated imports
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Presented simple extensions to scala language related to import statements: exported imports, which provide ability to reuse sequence of import clauses in composable form and default rewriters, which provide mechanism for pluggable macro-based AST transformation of overall compilation unit, activated by import of library object. Using these facilities not only allows more compact code, it prevents application programmer from producing certain type of errors too and allows to implement local language extension as libraries on top of standard compiler. Part of discussed extensions is submitted to scala language committee as pre-sip \cite{ai-presip} and can be used as first step for refining imports semantics in the future version of scala language.
提交历史
来自:Ruslan Shevchenko[v1] 2014年4月13日 星期日 18:20:40 UTC