arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.01825cs.PL
收藏

基于优雅对象表示的子类不合理假设检测

Detecting Unjustified Assumptions in Subclasses via Elegant Objects Representation

Vitaliy Korbashov, Nikolai Kudasov, Mikhail Olokin, Violetta Sim

摘要:

Elegant Objects(EO)是一种基于纯对象思想和装饰器模式的程序设计语言。Bugayenko建议将其作为面向对象程序的中间表示。本文提出了一个版本的动态调度模型在EO和制定的问题,不合理的假设装饰对象,这类似的问题在子类中。然后,我们介绍了一种方法来检测此类问题的EO程序通过方法内联和有限属性推理。最后,我们讨论了这种方法在Scala程序设计语言中的原型实现。

英文摘要:

Elegant Objects (EO) is a programming language based on ideas of pure objects and the Decorator pattern. Bugayenko has suggested it as an intermediate representation for object-oriented programs. This paper presents a version of dynamic dispatch modelled in EO and formulates a problem of unjustified assumptions in decorator objects, which parallels similar problem in subclasses. Then, we introduce an approach to detect such problems in EO programs via method inlining and limited property inference. Finally, we discuss prototype implementation of this approach in Scala programming language.

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

↑