Static type inference for a first-order declarative visual programming language with inheritance

Citation
Rw. Djang et al., Static type inference for a first-order declarative visual programming language with inheritance, J VIS LANG, 11(2), 2000, pp. 191-235
Citations number
44
Categorie Soggetti
Computer Science & Engineering
Journal title
JOURNAL OF VISUAL LANGUAGES AND COMPUTING
ISSN journal
1045926X → ACNP
Volume
11
Issue
2
Year of publication
2000
Pages
191 - 235
Database
ISI
SICI code
1045-926X(200004)11:2<191:STIFAF>2.0.ZU;2-G
Abstract
The early detection of type errors is a well-known benefit of static typing , but until recent years, this benefit usually has come at the cost of requ iring the programmer to explicitly declare the type of every object in a pr ogram. Since many visual programming languages (VPLs), especially those VPL s intended for end users, are designed to eliminate such programming mechan isms, most VPLs have been implemented with dynamic typing, thereby sacrific ing early type error feedback and other benefits of static typing. One pote ntial solution for this dilemma is static type inference, but unfortunately , the types inferred under previous approaches have been notoriously diffic ult to understand, even for professional programmers. Compounding this prob lem is the fact that when support for inheritance is added to such type inf erence systems, explicit type declarations have re-emerged. In this paper, we present a model of types that supports static type infere nce for a declarative VPL that includes inheritance. Our model addresses th e problems presented in the previous paragraph. We present the formal model of our type system, and show that the model is not only sound with respect to type safety, but that it also has sufficient power to support tradition al and non-traditional forms of inheritance, and further that it requires t he user to understand only a small vocabulary of types, a feature important in addressing the understandability problem in end-user VPLs. (C) 2000 Aca demic Press.