计算机科学 > 程序设计语言
[提交于 2021年6月28日]
标题:Seeking Stability by being Lazy and Shallow
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Designing a language feature often requires a choice between several, similarly expressive possibilities. Given that user studies are generally impractical, we propose using stability as a way of making such decisions. Stability is a measure of whether the meaning of a program alters under small, seemingly innocuous changes in the code. Directly motivated by a need to pin down a feature in GHC/Haskell, we apply this notion of stability to analyse four approaches to the instantiation of polymorphic types, concluding that the most stable approach is lazy (instantiate a polytype only when absolutely necessary) and shallow (instantiate only top-level type variables, not variables that appear after explicit arguments).
提交历史
来自:Gert-Jan Bottu[v1] 2021年6月28日 星期一 18:39:16 UTC