Proposals related to the Swift Concurrency effort:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Conform references types for use in the COW wrapper to this protocol | |
protocol Cowable: class { | |
/// Make a new unique instance of `copied` | |
static func makeUnique(_ copied: Self) -> Self | |
} | |
/// A wrapper that turns a Cowable reference type into a value-semantic | |
/// type with access to all of its properties | |
@dynamicMemberLookup |
- Martin Odersky - @odersky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |