Pitch: `borrow` and `inout` declaration keywords

When I was relatively new to Swift, coming from some experience in C++ (where I knew about T& but not T&&), I remember writing something like this:

inout aliasToE = a.b.c.d.e

Having read through this thread I don’t think that’s what I would want the syntax to be, but it would be nice if there’s a fix-it to change that to whatever that should be (whether it’s var x = &y or inout x = &y or whathaveyou).

1 Like