[swift-evolution] Proposal: Contiguous Variables (A.K.A. Fixed Sized Array Type)

Joe Groff jgroff at apple.com
Thu Jan 28 16:37:53 CST 2016


> On Jan 28, 2016, at 2:36 PM, Jacob Bandes-Storch <jtbandes at gmail.com> wrote:
> 
> I like this idea, but the syntax seems dangerously close to a call site for  "func *(lhs: Int, rhs: Any.Type)"  (which is obviously ill-advised, but it is allowed).
> 
> Maybe we could take advantage of something which would be very invalid under the current grammar, namely (n T) rather than (n * T):
> 
>     let values: (4 Int) = (1, 2, 3, 4)

Sure, or we could lift (4 x Int) from LLVM IR's syntax.

-Joe


More information about the swift-evolution mailing list