Thumbnail
Access Restriction
Open

Author Warth, Ro ♦ Kay, Alan
Source CiteSeerX
Content type Text
File Format PDF
Language English
Subject Domain (in DDC) Computer science, information & general works ♦ Data processing & computer science
Subject Keyword Side Effect ♦ Object Instance Variable ♦ Array Change ♦ Interesting Idiom ♦ Local Variable ♦ Imperative Program ♦ Language Construct ♦ Program State
Description In Proc. 25th European Conference on Object-Oriented Programming (ECOOP 2011
The state of an imperative program—e.g., the values stored in global and local variables, objects’ instance variables, and arrays—changes as its statements are executed. These changes, or side effects, are visible globally: when one part of the program modifies an object, every other part that holds a reference to the same object (either directly or indirectly) is also affected. This paper introduces worlds, a language construct that reifies the notion of program state, and enables programmers to control the scope of side effects. We investigate this idea as an extension of JavaScript, and provide examples that illustrate some of the interesting idioms that it makes possible. 1
Educational Role Student ♦ Teacher
Age Range above 22 year
Educational Use Research
Education Level UG and PG ♦ Career/Technical Study
Learning Resource Type Article