Well-Typed Programs Can't Be Blamed
Well-Typed Programs Can't Be Blamed
复制标题
不能责怪类型良好的程序
DOI:
--
复制
发表时间:
2009
期刊:
影响因子:
--
通讯作者:
R. Findler
中科院分区:
文献类型:
--
作者:
P. Wadler;R. Findler
We introduce the blame calculus , which adds the notion of blame from Findler and Felleisen's contracts to a system similar to Siek and Taha's gradual types and Flanagan's hybrid types . We characterise where positive and negative blame can arise by decomposing the usual notion of subtype into positive and negative subtypes, and show that these recombine to yield naive subtypes. Naive subtypes previously appeared in type systems that are unsound, but we believe this is the first time naive subtypes play a role in establishing type soundness.