计算机科学 > 程序设计语言
[提交于 2025年3月11日]
标题:Toward a Corpus Study of the Dynamic Gradual Type
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Gradually-typed languages feature a dynamic type that supports implicit coercions, greatly weakening the type system but making types easier to adopt. Understanding how developers use this dynamic type is a critical question for the design of useful and usable type systems. This paper reports on an in-progress corpus study of the dynamic type in Python, targeting 221 GitHub projects that use the mypy type checker. The study reveals eight patterns-of-use for the dynamic type, which have implications for future refinements of the mypy type system and for tool support to encourage precise type annotations.
提交历史
来自:Dibri Nsofor[v1] 2025年3月11日 星期二 22:18:51 UTC