arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1607.02228cs.PLcs.SE
收藏

在Erlang中实现可信重构

Towards Trustworthy Refactoring in Erlang

Dániel Horpácsi, Judit Kőszegi, Simon Thompson

摘要:

如果程序员要有信心将工具辅助重构转换应用于任意扩展和复杂的代码,以提高风格或效率,那么工具辅助重构转换必须是值得信赖的。我们提出了一个简单的,高层次的,但严格的,在Erlang中定义重构转换的符号,并表明,这种符号提供了一个可扩展的,可验证的和可执行的规约语言重构。为了证明我们的方法的适用性,我们展示了如何定义和验证系统中的一些示例重构。

英文摘要:

Tool-assisted refactoring transformations must be trustworthy if programmers are to be confident in applying them on arbitrarily extensive and complex code in order to improve style or efficiency. We propose a simple, high-level but rigorous, notation for defining refactoring transformations in Erlang, and show that this notation provides an extensible, verifiable and executable specification language for refactoring. To demonstrate the applicability of our approach, we show how to define and verify a number of example refactorings in the system.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑