[swift-evolution] [Manifesto] Ownership

Michel Fortin michel.fortin at michelf.ca
Sat Feb 18 15:18:49 CST 2017


Le 17 févr. 2017 à 3:25, John McCall via swift-evolution <swift-evolution at swift.org> a écrit :

> func endScope<T>(_ value: T) -> () {}

Just to be sure, that is the same thing as `move` where you to discard the return value, right?

	let something = make()
	endScope(something)

vs.

	let something = make()
	_ = move(something)

-- 
Michel Fortin
https://michelf.ca



More information about the swift-evolution mailing list