Re: [swift-evolution] Improved value and move semantics

2016-07-31 Thread Bram Beernink via swift-evolution
newElement: Element) -> Array? Best regards, Bram. > On 30 jul. 2016, at 12:46, Haravikk <swift-evolut...@haravikk.me> wrote: > >> On 29 Jul 2016, at 17:42, Bram Beernink via swift-evolution >> <swift-evolution@swift.org <mailto:swift-evolution@swift.org>&g

[swift-evolution] Improved value and move semantics

2016-07-29 Thread Bram Beernink via swift-evolution
Hi all, Would it be possible to improve value and move semantics (performance) in Swift? Consider this possible Swift code in a future release of Swift: let array1 : [String] = ["Val1", "Val2"] let array2 = array1.appended(“Val3”) // Copy of array1 with “Val3” appended. array1 is left