Abstract
JavaScript is a powerful imperative object based language made popular by its use in web pages. It supports flexible program development by allowing dynamic addition of members to objects. Code is dynamically typed: a runtime access to a non-existing member causes an error. We suggest a static type system for JavaScript that will detect such type errors. Therefore, programmers can benefit from the flexible programming style offered by JavaScript and from the safety offered by a static type system. We demonstrate our type system with a formalism of JavaScript, JS0. Our types are structural. Members of an object type are classified into definite and potential. A potential member becomes definite upon assignment. We outline a proof that our type system is sound.
| Lingua originale | Inglese |
|---|---|
| pagine (da-a) | 37-58 |
| Numero di pagine | 22 |
| Rivista | Electronic Notes in Theoretical Computer Science |
| Volume | 138 |
| Numero di pubblicazione | 2 |
| DOI | |
| Stato di pubblicazione | Pubblicato - 23 nov 2005 |
| Evento | Proceedings of the Second Workshop on Object Oriented Developments (WOOD 2004) - Durata: 30 ago 2004 → 30 ago 2004 |
Fingerprint
Entra nei temi di ricerca di 'Type checking for JavaScript'. Insieme formano una fingerprint unica.Cita questo
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver