Back to Search
Start Over
Celsius: A Model for Safe Initialization of Objects
-
Abstract
- Accessing uninitialized data during object initialization is a common and subtle programming error. This error is either not prevented by mainstream languages, like in Java, C++, Scala, or it is prevented by greatly restricting initialization patterns, like in Swift. In this paper, we propose a model called _Celsius_ for safe and modular initialization of objects, and prove its soundness. We extend the model and implement a prototype in Scala. The experiments on several real-world Scala projects show that the design requires few programmer annotations.
- Subjects :
- Software_PROGRAMMINGLANGUAGES
Object initialization, Scala
Subjects
Details
- Database :
- OpenAIRE
- Accession number :
- edsair.od.......185..9eca8137959ffa32b14c45bbc9a02e53