Work

A Formal Definition of Swift's Value Semantics

Year: 2020
Type: report
Abstract: Swift is a general-purpose programming language designed as a modern substitute for C-based languages, such as C/C++ and Objective-C. As such, its semantics departs from that of most alternative based on a virtual machine. Specifically, Swift distinguishes between reference and value semantics. The former corresponds to the way most objects in Java-like languages behave, whereas the latter relates more to passive data structures in C/C++. The support of value semantics in concert with common object-orientation patterns gives rise to a number of subtleties with which inexperienced developers may not be familiar. In this work in progress, I attempt to shed light on these aspects with a formal description of Swift's value semantics.
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W3109537055
Cites: 21
Cited by:
Related to: 10