Proposal 0095
The proposal pushed forward a new syntax for expressing constraints in the generics system
The proposal pushed forward a new syntax for expressing constraints in the generics system
This document is void. A new version is available as extended_existentials
#!/usr/bin/env xcrun swift | |
// This code sample and prototype implementation (implemented in patch against the 3.0 | |
// branch of the swift compiler) explores a possible syntax based on ideas discussed in | |
// the swift-evolution mailing list at | |
// http://thread.gmane.org/gmane.comp.lang.swift.evolution/904/focus=15133 | |
// | |
// The proposed syntax uses a combination of two characters to signal the start and end | |
// of a multiline string in the source code: _" contents "_ | |
// |
Multi-line string literals allow text that may be multiple lines long, to be included verbatim into a string literal. The string may even contain quote characters (" or '), and they don't have to be specially escaped.
package processing.app; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Map; | |
import java.util.Set; | |
/** | |
* A {@code KeyValueStore} implementation that delegates to a default store when a | |
* value is not found locally. Values added to the store are added locally leaving |