[swift-evolution] [Proposal] Use inout at function call sites

Kevin Ballard kevin at sb.org
Fri Jan 29 21:18:06 CST 2016


On Fri, Jan 29, 2016, at 07:16 PM, Brent Royal-Gordon via swift-evolution wrote:
> > P.S. At one point we thought about requiring you to declare "assignment" in your operator declaration, and disallowing inout parameters from arbitrary other operators, but that didn't actually turn into a proposal. It's not a bad idea, though—just a bit of compiler-enforced consistency.
> 
> Are there any `inout` operators which don't have `=` at the end of their name?

++ and -- come to mind, although they're being deprecated.

-Kevin Ballard


More information about the swift-evolution mailing list