2007 · 83 citations · 8 references
ComputingComputer ScienceData StructuresFormal MethodsProgramming LanguagesData TypesObject-oriented AnalysisObject-oriented DesignObject-oriented ProgrammingType CheckingType SystemsInitializationInvariantsObject-oriented ArchitectureObjects
Mainstream object-oriented languages such as C# and Java provide an initialization model for objects that does not guarantee programmer controlled initialization of fields. Instead, all fields are initialized to default values (0 for scalars and null for non-scalars) on allocation. This is in stark contrast to functional languages, where all parts of an allocation are initialized to programmer-provided values. These choices have a direct impact on two main issues: 1) the prevalence of null in object oriented languages (and its general absence in functional languages), and 2) the ability to initialize circular data structures. This paper explores connections between these differing approaches and proposes a fresh look at initialization. Delayed types are introduced to express and formalize prevalent initialization patterns in object-oriented languages.
8
Region-based memory management in cyclone
Dan Grossman, Greg Morrisett, Trevor Jim et al. · 2002 · 407 citations
Recursive structures for standard ML
Claudio Russo · ACM SIGPLAN Notices · 2012 · 46 citations