[swift-evolution] [Pitch] Don't require & for UnsafeRawPointer

Guillaume Lessard glessard at tffenterprises.com
Wed May 17 16:09:17 CDT 2017


How would you deal with the existence of:
UnsafeMutablePointer<Pointee>.init(mutating other: UnsafePointer<Pointee>)

No unsafe pointer can guarantee that it won’t be used to mutate its pointee.
Requiring a mutable variable seems like truth in advertising.

Sincerely,
Guillaume Lessard



More information about the swift-evolution mailing list