【24h】

What is a class invariant?

机译:什么是阶级不变?

获取原文

摘要

This paper is a progress report on our research into the problem of automatically identifying and using class invariants in object-oriented programs. We introduce an example of a class invariant in Java, and review applications for class invariants in software engineering tools and in compiler optimization. We then focus on an elementary problem of definition: what is a class invariant? This question gives an interesting perspective on programming language design. We conclude that there are many reasonable categories of class invariants, and that the problem of finding good definitions cannot be solved by a thought experiment. The only way to choose good categories is to experiment with the analysis of real programs, to see which categories of class invariant are actually useful. Our current research focuses on these experiments.

机译:>本文是关于我们对自动识别和使用面向对象程序中的类不变的问题的研究的进度报告。我们介绍了Java中的类不变的示例,并在软件工程工具和编译器优化中查看类不变的应用程序。然后我们专注于定义的基本问题:什么是课程不变?这个问题在编程语言设计上提供了一个有趣的视角。我们得出结论,有许多合理类别的阶级不变量,并且无法通过思想实验来解决找到良好定义的问题。选择良好类别的唯一方法是尝试对真实程序的分析,看看哪些类别的不变性实际上是有用的。我们目前的研究重点是这些实验。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号