[Pitch] InlineArray type sugar

But why add () when it could just be this:

var x: [Float]
var y: 100 of Float

Nothing makes it feel more inline than not wrapping it in some kind of bracket or parens:

 // tuple
var z: (100 of Float, 50 of Double)

 // function signature
func foo(components: 16 of Int)

// generic arguments
var s: Set<16 of Int>

// mixed with existing collection sugar:
var d: [String: 16 of Int] // Dictionary<String, 16 of Int>
var a: [16 of Int] // Array<16 of Int>

I wonder if that last one will be controversial. :smirking_face:

4 Likes