计算机科学 > 计算机科学中的逻辑
[提交于 2015年3月17日]
标题:Lucretia - intersection type polymorphism for scripting languages
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Scripting code may present maintenance problems in the long run. There is, then, the call for methodologies that make it possible to control the properties of programs written in dynamic languages in an automatic fashion. We introduce Lucretia, a core language with an introspection primitive. Lucretia is equipped with a (retrofitted) static type system based on local updates of types that describe the structure of objects being used. In this way, we deal with one of the most dynamic features of scripting languages, that is, the runtime modification of object interfaces. Judgements in our systems have a Hoare-like shape, as they have a precondition and a postcondition part. Preconditions describe static approximations of the interfaces of visible objects before a certain expression has been executed and postconditions describe them after its execution. The field update operation complicates the issue of aliasing in the system. We cope with it by introducing intersection types in method signatures.
提交历史
来自:EPTCS[v1] 2015年3月17日 星期二 04:03:54 UTC