paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Verifying object construction

验证对象构造
ICSE Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering2020匹配度 2/10 · 论文属于程序验证/语言设计,关注面向对象语言中对象构造与设计模式的验证,未涉及用户核心关注的 PL↔AI、Agentic 程序、LLM 改进静态分析、浮点程序分析或贝叶斯程序分析,仅与程序验证有宽泛关联。引用 10 inbox
Martin Kellogg, Manli Ran, Manu Sridharan, Martin Schäf, Michael D. Ernst
crossref: 2026-09-12

AI 速览

一句话:针对面向对象语言中多构造器与设计模式带来的对象构造问题,研究对象构造的验证。

在面向对象语言中,构造器常同时包含必需和可选形参,为每种参数组合手写构造器既繁琐又易错;构造器数量过多会让客户端代码难以阅读,并增加误用风险。程序员因此常使用构建器(builder)模式、依赖注入或工厂方法等设计模式来实现更灵活的对象构造。该论文围绕对象构造问题展开验证研究,标题表明其目标是验证对象构造。所给摘要仅阐述问题动机,未提供具体验证方法、实现或评估结果。

问题
面向对象语言中,构造器的必需/可选参数组合繁多,手写构造器繁琐易错,客户端代码因构造器参数过多而难读;构建器、依赖注入、工厂方法等模式被用于灵活构造对象,论文关注这些构造方式下的对象构造正确性。
方法
所给摘要未给出具体方法;标题表明论文研究的是对象构造的验证。
评估
所给摘要未提供评估方式或实验结果。
原文摘要(Abstract)

In object-oriented languages, constructors often have a combination of required and optional formal parameters. It is tedious and inconvenient for programmers to write a constructor by hand for each combination. The multitude of constructors is error-prone for clients, and client code is difficult to read due to the large number of constructor arguments. Therefore, programmers often use design patterns that enable more flexible object construction---the builder pattern, dependency injection, or factory methods.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot5633,
  title = {Verifying object construction},
  author = {Martin Kellogg and Manli Ran and Manu Sridharan and Martin Schäf and Michael D. Ernst},
  booktitle = {ICSE},
  year = {2020},
  doi = {10.1145/3377811.3380341}
}