Treffer: BabyJ: From Object Based to Class Based Programming via Types

Title:
BabyJ: From Object Based to Class Based Programming via Types
Contributors:
The Pennsylvania State University CiteSeerX Archives
Publisher Information:
Elsevier
Publication Year:
2002
Collection:
CiteSeerX
Document Type:
Fachzeitschrift text
File Description:
application/pdf
Language:
English
Rights:
Metadata may be used without restrictions as long as the oai identifier remains attached to it.
Accession Number:
edsbas.4DEE669B
Database:
BASE

Weitere Informationen

The popularity of object based languages has risen dramatically in recent years, owing to their use as scripts in HTML pages, or for interfacing with databases. A characteristic of these languages is interpretation and weak typing. Weak typing allows rapid prototyping but also runtime type errors. Therefore, it is desirable at a later development stage to have some assurances that your program will not go wrong. Class based programming languages usually have static typing and thus give more robust programs. However, owing to the rigidity of the type system prototyping can be di#cult. We propose a language, BabyJ, that combines the benefits of object based programming and types. BabyJ allows rapid "typeless" development and also gives the programmer the opportunity to incrementally annotate the program with type information. Once fully typed, a BabyJ program can be converted to an equivalent Java program, that can be developed further. This work is a continuation of previous work on BabyJ, in particular we have substantially improved the translation from BabyJ to Java, so that the code produced is in a class based style. Therefore, further development of the translated program is easier. 1